How many times is numberOfStudents() called if main() calls number0fStudents(9)? public static void numberOfStudents(int
Posted: Sat May 14, 2022 3:21 pm
How many times is numberOfStudents() called if main()
calls number0fStudents(9)?
public static void numberOfStudents(int num) {
if (num >= 10) {
System.out.println(num);
} else {
System.out.print("Bye");
numberOfStudents(num+l);
}
}
calls number0fStudents(9)?
public static void numberOfStudents(int num) {
if (num >= 10) {
System.out.println(num);
} else {
System.out.print("Bye");
numberOfStudents(num+l);
}
}