answersLogoWhite

0

A c program of tower of honai?

User Avatar

Anonymous

∙ 17y 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

∙ 17y ago
Copy
User Avatar

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


Can you program games with c plus plus?

Yes, you can program games with C++.


Write a c program for creating a virus?

a c program for creat a virus


How long is the C N tower?

34104000


Where do you get Rayquaza C?

In the tower by the floating city.

Trending Questions
Michael jacksons favorite things to buy? How many biological children t d jakes have by his wife? What is Patrick caulfield cafe sign about? Why do Hindu men shave their head after a funeral? What is the focal length of a zone plate? Where in the Bible it says you are to bind Satan? How do you graph y-x plus 4 equals 0? What does heterogeneous echo mean? What does the Iraq campaign medal with W campaign star mean? Why zinc cannot be used to make electrical wires? How do you rotate buildings in battle for Middle-earth 2? What will you do in confirmation? What did the peace of augsburg determine? What is Cadbury's annual turnover? What has the author Sissy Helff written? What kind of houses are there in Israel? What is the definition of a radio resistant tumor? What are the strengths and weaknesses of a CD? How much is the Nerf barrel break at Walmart? What is the turning radius of the 2014 Hyundai Sonata?

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 ©2026 Infospace Holdings LLC, A System1 Company. 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.