1
2
3
4
5
6
7
8
|
import sys
n=int(sys.stdin.readline())
while True:
a=int(sys.stdin.readline())
if a==0: break
else:
if a%n==0: print("%d is a multiple of %d."%(a,n))
else: print("%d is NOT a multiple of %d."%(a,n))
|
cs |
반응형
댓글