Skip to main content

Write a program that uses a while loop to compute and prints the sum of given numbers of cubes. For example, if 3 is input, then the program should print 36, which is equal to 1^3+2^3+3^3


 

Comments

Popular posts from this blog

Write a program in java to print your basic information.

 

Write a program in java to swap two numbers without using third variable.

 

How to convert a string to uppercase in C?