Posts

C++ code to Calculate SquareRoot of a number using Recursion

Example:  Input: 25                  Output: 5                                       Input: 11                  Output:3

C++ Program for Power Function using Recursion

Example: Input:  N=5; x=3;                  Output: 125 #include <iostream>

Tower of Hanoi

Image
The Animation for the Tower of Hanoi is:

Geometric Mean for a given K Using Recursion

Example: For a given K find:                                         1 + 1/2 + 1/4 + 1/8 + ... + 1/(2^k) 

Return Sum of Digits of an Integer using Recursion

Example:                Input: 1234                Output: 10

Multiply two numbers using Recursion

This program is to multiply two numbers using Recursive function.