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