C Program to Find Sum of N Numbers

Previously I have shared a program to calculate the two number using c programming language. In this program, for loop to calculate the sum number of N numbers. When you execute this program, first time you have to enter the count of number to calculate the some, and then have to enter the numbers as input.

How to calculate the sum of N numbers using c programming language

Copy the below program and execute it using c compiler.

Program Output

After compiling the above c program, you see the below output.

Please enter how many numbers you want to add
5
Please enter 5 numbers one by one
10
20
30
10
5
Sum of entered numbers = 75

If you like FreeWebMentor and you would like to contribute, you can write an article and mail your article to [email protected] Your article will appear on the FreeWebMentor main page and help other developers.

Recommended Posts:


Prem Tiwari

An engineer by profession and a passionate blogger by heart. Founder of FreeWebMentor.com (A Programming blog for beginners), Tech Speaker at various forums. A part from this he is an open source enthusiast, WordPress Lover, Blogger, SEO, and Growth Strategic.