Q. 6. Write a program to accept any two numbers and display the ‘GCD' of them. The GCD (Greatest Common Divisor) of two integers is calculated by continued division method. Divide the larger number by the smaller, the remainder then divides the previous divisor. The process is repeated till the remainder is zero. The divisor then results the GCD.
Answers
Answered by
0
Answer:
Sample Input: 45, 20
Sample Output: GCD=5
Explanation:
Similar questions