Find Average of N Numbers C Program

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.

Note: This C Program for Finding Average of N Numbers  is compiled with GNU GCC Compiler and written in gEdit Editor in Linux Ubuntu Operating System.

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

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

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


Find Average of N Numbers in C Programming using Arrays, While and For Loop

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.

Recommended Programs
C Program To Find Sum of Two Complex Integers
C Program To Calculate Perimeter of a Rectangle
C Program To Find Fibonacci Series
C Program To Convert Temperature from Fahrenheit to Celsius
C Program To Calculate Age of a Person
C Program To Find ASCII Values
C Program To Check is a Year is a Leap Year or Not

Tushar Soni

I am Tushar Soni, Co - Founder of CodingAlpha. I am a computer science student from India and passionate about Web Development and Programming. Connect with me on Facebook | LinkedIn | Google Plus

5 thoughts on “Find Average of N Numbers C Program

  • August 31, 2016 at 4:18 pm

    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?

    • September 4, 2016 at 10:38 am

      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.

  • September 13, 2016 at 10:58 am

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

  • September 13, 2016 at 11:00 am

    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.

  • October 5, 2016 at 8:43 pm

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


Join The Discussion