C program to find Sum of Series : 1+2+3+4+….+N using Recursion

By | 05.11.2016

Find sum of Series : 1+2+3+4+….+N

Write a C program to find sum of Series : 1+2+3+4+….+N. Here’s a Simple program to find sum of Series : 1+2+3+4+….+N by creating Recursive and Iterative Functions in C Programming Language.

Algorithm : : 

  • First printf statement will ask the user to enter any integer value and the scanf statement will assign the user entered value to Number variable.
  • Next, we used For Loop to iterate between 1 and user entered value.
  • Within the For loop, we calculated the sum.
  • In the above example, user entered value is 5 it means, 1 + 2 + 3 + 4 + 5 = 15

This program allows the user to enter any integer Value. Using the Recursive and Iterative Functions we will calculate the sum of N natural Numbers.

Below is the source code for C program to find sum of Series : 1+2+3+4+….+N which is successfully compiled and run on Windows System to produce desired output as shown below :


Output : :

If you found any error or any queries related to the above program or any questions or reviews , you wanna to ask from us ,you may Contact Us through our contact Page or you can also comment below in the comment section.We will try our best to reach upto you in the short interval.

Thanks for reading the post….

0 0 vote
Article Rating
Notify of
Inline Feedbacks
View all comments