//AGAIN ANOTHER WAY OF GETING SUM OF SERIES..1+2+3+4...n//
//TO FIND THE SUM OF N NATURAL NUMBERS//
#include<stdio.h>
int main()
{
int sum=0,n,i;
printf("ENTER THE NO:\n");
scanf("%d",&n);
sum=(n*(n+1))/2;//using formula n(n+1)/2....means 1(1+1)/2=2/2=1...2(2+1)/2=6/2=3...3(3+1)/2=3*4/2=6...ultimately in short formula...it will directly give u sum of n natural numbers..//