Last Updated: 14 August, 2022
On this tutorial page we are going to learn how to write a Java program to find the average number of 5 different numbers.
Below is the formula to find average:
Average = Sum of total values / total numbers of values
Output
Given Numbers are: 60, 80, 30, 10, 90
Average number is: 54
Output
Average of 4 numbers: 39
Average of 6 numbers: 30
That's all guys, hope this Java Program is helpful for you.
Happy Learning... 😀
feedback@javabytechie.com