Program that print 2 to the power of N when N goes from 1 to 100. | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

Program that print 2 to the power of N when N goes from 1 to 100.

one answer per line. Program using a for loop. how high can you count on 100 fingers? is the questions

8th Jun 2017, 3:44 PM
Talia Pacelli
Talia Pacelli - avatar
2 Answers
+ 4
use long int
8th Jun 2017, 4:10 PM
Mayur Chaudhari
Mayur Chaudhari - avatar
+ 2
for i in range(1,100): print(2**i)
8th Jun 2017, 4:17 PM
Da' BO$
Da' BO$ - avatar