The sum of the cubes of first n natural numbers is given by the formula:
13 +23 +33 +43 + ...............................................n3 = [n (n+1) / 2 ] 2
You are intended to write a program to compute the sum:
S= 33 +43 +53 +63 + …………………….+ n3
WAP in java to find the sum of the given series taking the value of n as an input from the user.
Answers
Answered by
1
Explanation:
plz try this formula...................
Attachments:
Similar questions