C program to find sum of first n natural numbers

#include<stdio.h>
#include<conio.h>
void main()
{
int i,n,s=0;
puts("Enter the number till you want to calculate the sum");
scanf("%d",&n);
for(i=1;i<=n;i++)
s=s+i;
printf("Sum of numbers from 1 to %d is %d",n,s);
}

Comments