Find Average of N Numbers C Program

By | August 30, 2016

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


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

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


Output

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

5 thoughts on “Find Average of N Numbers C Program

  1. Jayesh Bhosale

    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?

    Reply
    1. Tushar Soni Post author

      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.

      Reply
  2. Pratap Singb

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

    Reply
  3. Akshay Koul

    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.

    Reply
  4. Vikram Sinha

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

    Reply

Let's Discuss