Environmental Sciences, asked by shashwotkhadkaths, 6 months ago

write a program to print the cube of first five natural number

Answers

Answered by aastha1xxx
2

Answer:

Program for cube sum of first n natural numbers

Print the sum of series 13 + 23 + 33 + 43 + …….+ n3 till n-th term.

Examples :

Input : n = 5

Output : 225

13 + 23 + 33 + 43 + 53 = 225

Input : n = 7

Output : 784

13 + 23 + 33 + 43 + 53 +

63 + 73 = 784

Explanation:

here is ur answer pls mark my answer as brainliest n too pls fllw me...

Answered by PShah066
0

Answer :

Program for cube sum of first n natural numbers :-

Print the sum of series 13 + 23 + 33 + 43 + …….+ n3 till n-th term.

Examples :

Input -- n = 5

Output -- 225

13 + 23 + 33 + 43 + 53 = 225

Input : n = 7

Output : 784

13 + 23 + 33 + 43 + 53 + 63 + 73 = *784*

Hope it helps :)

Please mark my answer as brainliest =)

Similar questions