Computer Science, asked by ishaanagarwal0207, 17 days ago

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 Ayushtripathithebest
0

Answer:

Sample Input: 45, 20

Sample Output: GCD=5

Explanation:

Similar questions