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?


import_contacts

You may also like:

Related Posts

Leave a Reply

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

Subscribe to our newletter

Get quality tutorials to your inbox. Subscribe now.