Auto commit

上级 df352508
print('欢迎来到 InsCode')
\ No newline at end of file
def main():
a = int(input("请输入a的值:"))
b = int(input("请输入b的值:"))
if b == 0:
print("data error")
return -1
else:
c = a % b
while c != 0:
a = b
b = c
c = a % b
print(b)
main()
\ No newline at end of file
def main():
a = int(input("请输入a的值:"))
b = int(input("请输入b的值:"))
if b == 0:
print("data error")
return -1
else:
c = a % b
while c != 0:
a = b
b = c
c = a % b
print(b)
main()
\ No newline at end of file
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册