+91-85006-22255
Write a program to find the average of all even numbers till a given number.
class Average { public static void main(String s[]) { System.out.println("Average of even numbers till 10 is " + averageOfEvenNumbers(10)); } public static int averageOfEvenNumbers(int input) { int output = 0;
return output; } }
Topic: for Loop In Java
Read this topic Take test on this topic
Open In App