Question: 19 1) Write a program that prints out the cube of a given number. 18 It accepts an integer n as input, and prints

19 1) Write a program that prints out the cube of a


19 1) Write a program that prints out the cube of a given number. 18 It accepts an integer n as input, and prints the cube of all integers from 1 till n. > Enter an integer: 15 17 16 15 14 Cube of 1 is 1 13 Cube of 2 is 8 12 Cube of 3 is 27 11 Cube of 4 is 64 10 Cube of 5 is 125 9 Cube of 6 is 216 8 Cube of 7 is 343 7 Cube of 8 is 512 6 Cube of 9 is 729 5 Cube of 10 is 1000 4 Cube of 11 is 1331 3 Cube of 12 is 1728 2 Cube of 13 is 2197 1 Cube of 14 is 2744 Cube of 15 is 3375

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!