โ Back to Loops
Question 212
Powers of Two up to 128
Powers of Two up to 128
Starting from1, repeatedly double the value and print each result up to128, one per line: 1 2 4 8 16 32 64 128 Multiply by2each pass and stop once the value passes128.
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.