1 2 3 4 5 6 7 8 9 10
a=50 b=130 while a!=0 and b!=0: if a>b: a=a%b print ('a = %s') % a else: b=b%a print ('b = %s') % b print (a+b)