173k views
4 votes
I need the answer to 4.6.6: Target
please and thank you

User Woodson
by
4.8k points

1 Answer

2 votes

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.

User Keselme
by
4.3k points