Commit ab72e963 by BellCodeEditor

auto save

parent 2440e1b6
Showing with 13 additions and 0 deletions
print("正整数")
a=int(input("正数1:"))
b=int(input("正数2:"))
c=0
if b>a:
c=a
else:
c=b
for i in range(c,0,-1):
if a%i==0 or b%i==0:
print(i)
break
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment