/**********************************************************
* Program to find the sum of natural numbers upto n terms
***********************************************************/
#include<stdio.h> // include stdio.h
int main()
{
int terms, i;
unsigned long int sum = 0;
printf("Enter the number of terms: \n");
scanf("%d", &terms);
for(int i = 1 ; i <= terms; i++)
{
sum += i;
}
printf("%ld", sum);
return 0;
}