Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # paulogp
- def GCD(a, b):
- assert a >= b # a must be the larger number
- while (b != 0):
- remainder = a % b
- a, b = b, remainder
- return a
- # exemplo
- print(GCD(10, 5))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement