## C Program To Find Average of N Numbers

Learn How to Find Average of N Numbers in C Programming. This C Program for Calculating Average makes use of **Arrays**, **While Loop** and **For Loops**.

#### Method 1: C Program To Find Average of N Numbers using Arrays

[crayon-5c1180582890f815049148/]

#### Method 2: C Program To Calculate Average of Numbers without Arrays

[crayon-5c1180582891a696768809/]

#### Method 3: C Program To Calculate Average of Integers using While Loop

[crayon-5c1180582891e026415094/]

#### Output

If you have any compilation error or doubts in this C Program To Calculate Average of N Numbers, let us know about it in the Comment Section below.

You have taken the limit of the Array as 50. What if the User inputs elements more than 50? What is the solution to this?

You may either use a Macro Definition and define the Limit as 100 or you can take the Array Dimension/Size as 200 and then take the limit from the User.

Such a good brief explanation about finding average of n numbers in c programming. Thanks.

I think finding averga of n numbers using array is much better than finding of n numbers using For loop or While loop. Arrays helps to manage memory better and also makes elements easily accessible.

It is better to store elements in an array than to calculate average of numbers in c programming.