n = int(sys.argv[1]) power = 1 while 2*power <= n: power *= 2 stdio.writeln(power)Hi everyone!I am curious about if i can write this code using for loop and if yes could you give me some hints?
(This program writes,standard output largest power of two less than or equal to n.)