Hello, OnlineGDB Q&A section lets you put your programming query to fellow community users. Asking a solution for whole assignment is strictly not allowed. You may ask for help where you are stuck. Try to add as much information as possible so that fellow users can know about your problem statement easily.

How to find the GCD or HCF of 2 numbers in C language?

–2 votes
asked Jul 9, 2019 by Ishita Tyagi (100 points)

1 Answer

0 votes
answered Jul 13, 2019 by satish kumar (140 points)
https://onlinegdb.com/SyI2mCU-B        I HAVE WRITTEN PROGRAM IN C. GO THROUGH GIVEN LINK.

THE BASIC CONCEPT OF THE PROGRAM IS FINDING THE MAXIMUM NUMBER WHICH DIVIDES BOTH NUMBER. DIVIDE BOTH NUMBER FROM 1 TO MINIMUM OF BOTH . STORE THAT THOSE NUMBER IN ANOTHER  VARIABLE. WHICH GIVES RIMINDER 0. YOU WILL GET GCD .
Welcome to OnlineGDB Q&A, where you can ask questions related to programming and OnlineGDB IDE and and receive answers from other members of the community.
...