Sum of Cubes
Write a program that asks the user to
type an integer N and then computes the sum of the cubes of the numbers from 1
to N (0 < N ≤ 1000).
Input: In the first line, you will get a
positive number N.
Output: Sum of the cubes of the numbers until
N3.
Sample Input1:
|
Sample Input2:
|
3
|
100
|
Sample Output1:
|
Sample Output2:
|
36
|
25502500
|
Для отправки решений необходимо