Posts

Showing posts from July 3, 2016

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: