//AN IMPLEMENTATION TO CALCULATE THE SUM OF SERIES OF...1 + (1+2) + (1+2+3) + (1+2+3+4)_ _ _ _ _ _ _(1+2+ _ _ +N)//
#include<stdio.h>
int main()
{
int n,i,j,sum=0;
printf("ENTER THE VALUE OF N:\n");
scanf("%d",&n);
for(i=1;i<=n;i++)//1st is for getting sum ..if n=3...then for i=1
for(j=1;j<=i;j++)//2 loops will be operated..//2nd loop for getting sum again & again ..added to previous sum..//for i==1..j=1//then for i==2..j=1+2=3 //for i==3..then for j=1+2+3=7..//