Sum of n natural numbers in C
C program to find the sum of n natural numbers using the formula and a for loop.
First n natural numbers are 1, 2, 3, ...,n. The numbers form an arithmetic progression (AP) with one as the first term as well as the common difference.
Sum of first n natural numbers = n*(n+1)/2.