C program to find HCF

Problem statement

Write a program which takes two numbers as input from user and find the HCF of numbers.

What is HCF

HCF stands for Highest Common Factor(HCF).
HCF is also known as Greatest Common Measure(GCM) and Greatest Common Divisor(GCD)
HCF of two or more numbers is the greatest number which divides each of them exactly.
For example: HCF of 60 and 75 is 15.

C program to find HCF of two given numbers

Output

Ankit Wasankar

Senior Java Developer
Java 11 | Microservices | Reactjs | SQL

Help others by sharing the content!

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.