Medium
GCD Function
Write a function
gcd(a, b) using Euclid's algorithm and print the greatest common divisor of the two inputs.Input
Two integers on separate lines.
Output
gcd(a, b).
Sample 1
Input
12 18
Output
6
Sample 2
Input
17 5
Output
1
Output appears hereHints