The document provides a lab assignment to write recursive programs to: 1) Print the first n natural numbers, 2) Find the sum of the first n natural numbers, 3) Find the factorial of a number, 4) Find the sum of the digits of an integer, 5) Find the number of digits of an integer, 6) Find the first n numbers of the Fibonacci sequence, 7) Find the greatest common divisor (GCD) of two numbers, 8) Find the power of any number, 9) Solve the Tower of Hanoi puzzle, and 10) Check whether a given integer is prime or not.
The document provides a lab assignment to write recursive programs to: 1) Print the first n natural numbers, 2) Find the sum of the first n natural numbers, 3) Find the factorial of a number, 4) Find the sum of the digits of an integer, 5) Find the number of digits of an integer, 6) Find the first n numbers of the Fibonacci sequence, 7) Find the greatest common divisor (GCD) of two numbers, 8) Find the power of any number, 9) Solve the Tower of Hanoi puzzle, and 10) Check whether a given integer is prime or not.
The document provides a lab assignment to write recursive programs to: 1) Print the first n natural numbers, 2) Find the sum of the first n natural numbers, 3) Find the factorial of a number, 4) Find the sum of the digits of an integer, 5) Find the number of digits of an integer, 6) Find the first n numbers of the Fibonacci sequence, 7) Find the greatest common divisor (GCD) of two numbers, 8) Find the power of any number, 9) Solve the Tower of Hanoi puzzle, and 10) Check whether a given integer is prime or not.
The document provides a lab assignment to write recursive programs to: 1) Print the first n natural numbers, 2) Find the sum of the first n natural numbers, 3) Find the factorial of a number, 4) Find the sum of the digits of an integer, 5) Find the number of digits of an integer, 6) Find the first n numbers of the Fibonacci sequence, 7) Find the greatest common divisor (GCD) of two numbers, 8) Find the power of any number, 9) Solve the Tower of Hanoi puzzle, and 10) Check whether a given integer is prime or not.