while 1: s = input('输入:') f = input('输入:') s = int(s) f = int(f) if s > f: r = s h = f else: r = f h = s t = r if (r == 0 or r == 1) or (h == 0 or h == 1): print('错误') continue while 1: if r % h == 0: print(r) break else: r = r + t
while 1: s = input('输入:') f = input('输入:') s = int(s) f = int(f) if s > f: r = s h = f else: r = f h = s t = r if (r == 0 or r == 1) or (h == 0 or h == 1): print('错误') continue while 1: if r % h == 0: print(r) break else: r = r + t