CS161 Assignment 5: Recursion

The objective of this assignment is to practice recursion. You are not supposed to use loops while writing this program.

Write a java class called Recursion. This class should have the following methods:


Submitting Your Assignment

Submit your Recursion.java using checking program as PA5.
Note that your code should compile on the department Linux machines, and make sure that you are submitting the source code rather than the Java class file.