Exerpad
Exercise 8 · Chapter: While LoopsOptional+50 XP

Powers of Two

Print powers of 2 from 1 up to 1024.

1
2
4
8
16
32
64
128
256
512
1024
Need a hint?
3 available · costs 5 XP each
javascript

Output
Run your code to see the output here.