Sum of cubes
Python
Easy
loops
Task «Sum of cubes»
Write a program that finds the sum of cubes of all integers from 1 to N inclusive. It is guaranteed that N is positive and does not exceed 1000.
Input Format
One integer N (1 ≤ N ≤ 1000).
Output Format
One integer — the sum of cubes of numbers from 1 to N.
Examples
Example 1
INPUT
1
OUTPUT
1
Example 2
INPUT
3
OUTPUT
36
main.py