print 1 to 77 numbers in java
Answers
Answered by
0
Answer:
{ public static void main(String[] args) { int number = 1; printNumbers(number); } public static void printNumbers(int num) { if(num <= 100) { System.out.print(num +" "); printNumbers(num + 1); } } }
Explanation:
Similar questions