answersLogoWhite

0

A c program of tower of honai?

User Avatar

Anonymous

∙ 16y ago
Updated: 8/17/2019

void Hanoi (int n, int nfrom, int nto, int nspare)

{

if (n>1) Hanoi (n-1, nfrom, nspare, nto);

printf ("Move from %d to %d\n", nfrom, nto);

if (n>1) Hanoi (n-1, nspare, nto, nfrom);

}

int main (void)

{

Hanoi (6, 1, 2, 3);

return 0;

}

User Avatar

Wiki User

∙ 16y ago
Copy

What else can I help you with?

Related Questions

C program to implement tower of hanoi using array implementation of stack abstract datatype?

stack abstract datatype


C program was introduced in the year?

c program was introduced in the year 1972 by Dennis RitchieNo, it was the C language, not the C program.


Features of c program?

the features of a C program


When was Tower of Babel - M. C. Escher - created?

Tower of Babel - M. C. Escher - was created in 1928.


What is executive a c program?

I think it is 'execution of a C program'.


C program on left factoring in compiler design?

how to create a c program for left factoring.


Program for sin series in c language?

find the program in c-pgms.blogspot.com


Different parts of c language program?

what are the parts of C language program


Write a c program for creating a virus?

a c program for creat a virus


Can you program games with c plus plus?

Yes, you can program games with C++.


How long is the C N tower?

34104000


Where do you get Rayquaza C?

In the tower by the floating city.

Trending Questions
How old to you have to be to play WolfQuest? What is the meaning of grade cf8m in valve? What does zymac kill? Does Smooth muscles activity generates heat to help maintain body temperature? How Black Lab and Black Mouth Cur mix will be? When could bleeding occur after taking provera tablets 5Mg twice a day for five days? What movie and television projects has Nicholas Pappone been in? What is a rule for ordering fractions with the same denominator? Who started foursquare? Garth Brooks song in Ace Ventura Pet Detective? where can you cash in a saving bond. i live in conyers ga? How long do caramel apples last before they go bad? When did Halle Berry star in swordfish? What is 416 as a decimal? Where is the fuse box located in a Rendezvous? What are some fun things about being an attorney? What is a yadu? Is a cloak a noun? How can I effectively unclog a drain that is blocked with grease? What is the criteria to declare a damaged car a total loss?

Resources

Leaderboard All Tags Unanswered

Top Categories

Algebra Chemistry Biology World History English Language Arts Psychology Computer Science Economics

Product

Community Guidelines Honor Code Flashcard Maker Study Guides Math Solver FAQ

Company

About Us Contact Us Terms of Service Privacy Policy Disclaimer Cookie Policy IP Issues
Answers Logo
Copyright ©2025 Answers.com. All Rights Reserved. The material on this site can not be reproduced, distributed, transmitted, cached or otherwise used, except with prior written permission of Answers.