CJCoding With Joseph

Cubes 1 to 5

Print the cubes of the numbers 1 through 5 (each is i * 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.