Java program to calculate arithmetic mean

Previous
Next

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

Previous
Next

Join Our News Letter – Stay Updated

Subscribe to Awesome Java Content.




Add Comment

Join Our News Letter - Stay Updated

Subscribe to Awesome Java Content.
You can like our facebook page Java2blog