Write a recursive method countDown( ) that takes an integer n as its parameter. It prints the integers from n down to 0, one per line, and then it prints "Blast off!".
Write a recursive method add1toN( ) that takes an integer n as its parameter. It returns the sum 1 + 2 + 3 + ... + n.
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here