CJCoding With Joseph

Powers of Two up to 128

Starting from 1, repeatedly double the value and print each result up to 128, one per line:

1
2
4
8
16
32
64
128

Multiply by 2 each pass and stop once the value passes 128.

Expected Output:

1
2
4
8
16
32
64
128
Topics:
Loops
Code Editor
1
Tab to indent ยท Ctrl+Enter to run ยท Ctrl+Space to expand shortcuts (p, fori)

Your Output

Run your code to see the output here...

Test Cases

Run your code to see test case results.