The above program logic -
How to calculate sum of first N natural numbers without using loop given below !
S=nĂ—(n+1)/2;
Were, S is a variable to store the result of Sum of first N natural number.
n is a another variable which takes input which is given by user.

Follow--
1)Facebook page
Learning c with programming
2)Don't forget to tag our channel
#learningcwithprogramming