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
Please enter 5 numbers one by one
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: