Skip to content

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