Java program to find average of n numbers

Average of n numbers can be calculated using average = (sum of n numbers)/(n). 


Output:

How many numbers: 6
Enter the numbers:
1 2 3 4 5 6
The average of  6 numbers is 3.5

Implementation: