To Write a Python program to compute the GCD or HCF of two numbers.

Program to find GCD or HCF of two numbersGCD(Greatest Common Divisor) or HCF (Highest Common Factor) of two numbers is the largest number that divides both of them.

Using Loops

Using Euclidean Algorithm

Using Recurssion

 

Leave a Reply

Your email address will not be published. Required fields are marked *