def nwd(a,b):
while a != b:
while a > b:
a = a - b
while b > a:
b = b - a
return a
" Life is not a problem to be solved but a reality to be experienced! "
© Copyright 2013 - 2024 KUDO.TIPS - All rights reserved.
def nwd(a,b):
while a != b:
while a > b:
a = a - b
while b > a:
b = b - a
return a