โ Back to Loops
Question 321
Cubes 1 to 5
Cubes 1 to 5
Use a loop to print the cube (n*n*n) of each number from 1 to 5, one per line. The exact output is: 1 8 27 64 125
Expected Output:
1 8 27 64 125
Topics:
Loops
Code Editor
1
Tab to indent ยท Ctrl+Enter to run ยท Ctrl+Space to expand shortcuts (cout, fori)
Your Output
Run your code to see the output here...
Test Cases
Run your code to see test case results.