Added Algorithm for Tower of Hanoi

This commit is contained in:
shashikedissanayake 2017-09-21 17:50:45 +05:30
parent dbe89ab930
commit 4377477d9e

View File

@ -2,6 +2,7 @@
#include <stdio.h>
#include <stdlib.h>
// Function for Tower of Hanoi algorithm
void hanoi(int noOfDisks,char where,char to,char extra){
if(noOfDisks == 0 )
{