Write an algorithm to compute the sum of the cube of N numbers.
Answers
Answered by
0
Answer:
We know the sum of the cubes of first n natural numbers (S) = {n(n+1)2}2.
Therefore, the sum of the cubes of first 12 natural numbers = {12(12+1)2}2.
We know the sum of the cubes of first n natural numbers (S) = {n(n+1)2}2.
Therefore, the sum of the cubes of first 25 natural numbers = {25(25+1)2}2.
Similar questions