C Program to Find Sum of N Numbers

| Last Updated: | In: C Programming Tutorial


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


About: Prem Tiwari

Prem Tiwari is the founder of freewebmentor.com and is a professional developer who has vast experience in PHP and open source technologies. Apart from this, he is a blogger by hobby and also he has been a regular speaker of WordPress sessions in various IT Companies.


You may also like:

Tags: