Answer:
i=0
while pow(2,i)<=1000000:
print(pow(2,i))
i+=1
Step-by-step explanation:
We need to write a program that prints the power of 2, and till the number is less than 1 milliion. And the program in python is as above.
4.6m questions
6.0m answers