1.

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

Answer»

n = 5 OUTPUT : 35Explanation :(1) + (1+2) + (1+2+3) + (1+2+3+4) + (1+2+3+4+5) = 35Input : n = 10Output : 220Explanation :(1) + (1+2) + (1+2+3) + .... +(1+2+3+4+.....+10) = 220hope it helps umark me BRAINLIEST



Discussion

No Comment Found