Masala #BHEWEZMYUO
Sum of Cubes
Write a function that takes a positive integer n, sums all the cubed values from 1 to n (inclusive), and returns that sum.
Assume that the input n will always be a positive integer.
Kiruvchi ma'lumotlar:
Chiquvchi ma'lumotlar:
Misollar
# | input.txt | output.txt |
---|---|---|
1 |
1 |
1 |
2 |
2 |
9 |