Medium
Greatest Common Divisor
Read two positive integers and print their GCD using Euclid's algorithm in a while loop.
Input
Two integers.
Output
The GCD.
Sample 1
Input
48 18
Output
6
Sample 2
Input
17 5
Output
1
Output appears hereTwo integers.
The GCD.
48 18
6
17 5
1
Output appears here