A問題 高橋君と青木君の好きな数
1 2 3 4 5 6 7 8 9 |
a = int(input()) b = int(input()) n = int(input()) count = n while count>=n: if count %a==0 and count%b==0: print(count) break count += 1 |
1 2 3 4 5 6 7 8 9 |
a = int(input()) b = int(input()) n = int(input()) count = n while count>=n: if count %a==0 and count%b==0: print(count) break count += 1 |
コメント