1+(1+2)+(1+2+3)+(1+2+3+4)... find the sum of the series
Answers
Answered by
2
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
Answered by
0
Hope it helps!!
Similar questions