We want to create a recursive method callednumbers. This method is suppose to create the following sample output
numbers(10) should display 10 9 8 7 6 5 4 3 2 1 0
numbers(5) should display 5 4 3 2 1 0
Fill in the blank so that the method generates the desired output
public static void numbers(int a) { if (_1__ ___2___ __3___) <----- base="">-----> return; System.out.print(___4___ + " "); ___5___(___6___ ___7___ _____8____); <--- recursive="">---> }
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here