Project-alpha icon indicating copy to clipboard operation
Project-alpha copied to clipboard

Create gcd_theorem.cpp

Open projjwalraj707 opened this issue 3 years ago • 0 comments

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.

projjwalraj707 avatar Jun 05 '22 16:06 projjwalraj707