Java program to calculate arithmetic mean

In this tutorial, we will see simple java program to calculate arithmetic mean.
Here is simple algorithm to calculate arithmetic mean.

  • Calculate sum of elements in the array
  • Divide it by total number of element in the array.

Output:

Please enter count of numbers you want to Enter ? 5
Enter 5 Numbers : 67 54 65 38 96
Arithmetic Mean = 64

Was this post helpful?

Leave a Reply

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