C Program to Find Sum of N Numbers

Prem Tiwari - - 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
Please enter 5 numbers one by one
Sum of entered numbers = 75

Prem Tiwari

Prem Tiwari is the founder of FreeWebMentor.com and also a professional developer and a blogger by hobby.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.