โ Back to Loops
Question 203
Cubes 1 to 5
Cubes 1 to 5
Print the cubes of the numbers1through5(each isi * i * i), one per line: 1 8 27 64 125 Compute each cube inside the loop; do not hardcode the values.
Expected Output:
1 8 27 64 125
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.