Skip to content

Create gcd_theorem.cpp#202

Open
projjwalraj707 wants to merge 1 commit intoAniket762:mainfrom
projjwalraj707:patch-1
Open

Create gcd_theorem.cpp#202
projjwalraj707 wants to merge 1 commit intoAniket762:mainfrom
projjwalraj707:patch-1

Conversation

@projjwalraj707
Copy link

This program finds HCF of two numbers.
The logic behind the code is that HCF of 'a' and 'b' is same as 'a-b' and 'b'. And when one of the numbers is zero the other one is automatically the HCF of the two.

This program finds HCF of two numbers.
The logic behind the code is that HCF of 'a' and 'b' is same as 'a-b' and 'b'. And when one of the numbers is zero the other one is automatically the HCF of the two.
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.

1 participant