Calculate Arithmetic Mean or Average in Java
Calculate Arithmetic Mean or Average in Java
Following Java Program ask to the user to enter "How many number he want to enter", then
ask to enter all the numbers to calculate and display the arithmetic mean:
import java.util.Scanner;
armean = sum/n;
When the above Java Program is compile and executed, it will produce the following output: