import math
while True:
num1 = int(input('请输入第一个整数'))
num2 = int(input('请输入第二个整数'))
if num1 > num2:
while num2 != 0:
num1, num2 = num2, num1 % num2
print(num1)
elif num1 < num2:
while num1 != 0:
num2, num1 = num1, num2 % num1
print(num2)
else:
print(num1)
© 版权声明
THE END
暂无评论内容