Skip to content

toh #83

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

toh #83

wants to merge 3 commits into from

Conversation

Mukheem1603
Copy link

No description provided.

@@ -0,0 +1,24 @@
#include<stdio.h>
#include<conio.h>
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This header file is not required.

void main()
{
int n;
printf("Enter the number of discs:\n");
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Use std::cout and std::cin instead of printf and scanf.

#include<stdio.h>
#include<conio.h>
#include<string.h>
void TOH(int n,char s,char d,char i)
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

TOH can be renamed to something more verbose.

Copy link
Owner

@xennygrimmato xennygrimmato left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added some minor comments.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants