Write a C Program to Implement Towers of Hanoi

Towers of Hanoi, C Program, Sumit Kar, Timus Rak

#include <stdio.h>

void toh(int,char,char,char);

void main()


 int n=3;



void toh(int n,char a,char b,char c)



  printf("\nMoved from %c to %c",a,c);




  toh(1,a,' ',c);





Popular posts from this blog

Write a Program to Add two 3x3 Matrix using C

C program for Unit Conversion

Write a Program to Add two 5x5 Matrix using C