| Name (PRINTED): | |
| Student ID #: | |
| Section # (or TA's: | |
| name and time) |
| CMSC 250 | Quiz #1 | Wed., August 31, 2005 |
public int fibonacci(int n);
that will return the nth element of the Fibonacci sequence.
public int mystery(int n) throws Exception {
System.out.print(n); System.out.print(" ");
if (n > 100) {
return n-10;
}
else {
return mystery(mystery(n+11));
}
}
What is the output of the calling line:
System.out.println(mystery(97));