Java program to average numbers

Java program to average numbers

Output:

How many numbers: 5
Enter the numbers:
1.0 2.0 3.0 4.0 5.0
The average of 5 numbers is 3.0

Implementation: