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