描述:
Given A and B. Find the greatest D which is a common divisor of both A and B.
输入:
Two positive integers A and B (A,B <= 10000).
输出:
One integer D.
样例输入:
18 24
样例输出:
6
翻译:
描述:
给个数字A和B,找出a和B的公约数中最大的D。
输入:
两个正整数A和B(A,B <= 10000).
输出:
一个整数D。
样例输入:
18 24
样例输出:
6