Question: How many times is numberOfStudents() called if main() calls numberOfStudents(9) ? public static void numberOfStudents(int num) { if (num >= 10) { System.out.println(num): }
How many times is numberOfStudents() called if main() calls numberOfStudents(9) ? public static void numberOfStudents(int num) { if (num >= 10) { System.out.println(num): } else { System.out.print("Bye"); numberOfStudents(num+1); } }
Step by Step Solution
There are 3 Steps involved in it
The image contains a Java method named numberOfStudents which takes an integer paramete... View full answer
Get step-by-step solutions from verified subject matter experts
