Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

toh #83

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.

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

Successfully merging this pull request may close these issues.

2 participants