#508. python-函数求最大公约数
python-函数求最大公约数
习题2
创建函数,接收两个输入整数,求出最大公约数并输出。
输入格式
两行整数
输出格式
输出最大公约数
输入输出样例 #1
输入 #1
12
16
输出 #1
4
输入输出样例 #2
输入 #2
66
33
输出 #2
33
创建函数,接收两个输入整数,求出最大公约数并输出。
两行整数
输出最大公约数
输入 #1
12
16
输出 #1
4
输入 #2
66
33
输出 #2
33
By signing up a Hydro universal account, you can submit code and join discussions in all online judging services provided by us.