Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- a=int(input("Введите 1 число: "))
- b=int(input("Введите 2 висло: "))
- while a!=0 and b!=0:
- if a>b:
- a=a%b
- else:
- b=b%a
- print ("Наибольший общий делитель: ", (a+b))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement