Write a Java method to compute the average of three numbers
belongs to collection: Method/Function programming exercises in Java
All Answers
total answers (1)
belongs to collection: Method/Function programming exercises in Java
total answers (1)
In this demo I have used NetBeans IDE 8.2 for debugging purpose. But you can use any java programming language compiler as per your availability..
Result:
Input the first number: 50
Input the second number: 30
Input the third number: 60
The average value is 46.666666666666664
need an explanation for this answer? contact us directly to get an explanation for this answer