Computer Science, asked by sachi11262, 11 months ago

write a program in java to find the sum of this series till n terms : 1+(1+2)+(1+2+3).....n terms​

Answers

Answered by raisashaikh0319
0

Input : n = 5

Output : 35

Explanation :

(1) + (1+2) + (1+2+3) + (1+2+3+4) + (1+2+3+4+5) = 35

Input : n = 10

Output : 220

Explanation :

(1) + (1+2) + (1+2+3) + .... +(1+2+3+4+.....+10) = 220

hope it helps u

mark me brainliest

Similar questions