Recursion

  1. Select the value of N (values must me greater than 1 and less than or equal to 5).
  2. Press next to see the execution of the code.
  3. Relavant line in the code is shown here.
  4. The output of the code is shown in the right.

Manual

Experiments will show you how to solve the classical puzzle of Towers of Hanoi through recursion.