본문 바로가기

Programming [Python]/백준 알고리즘 솔루션

#338 백준 파이썬 [4504] 배수 찾기

https://www.acmicpc.net/problem/4504

 

PYTHON CODE

n = int(input())
number = int(input())

while number:
    if number % n == 0:
        print("%s is a multiple of %s." % (number, n))
    else:
        print("%s is NOT a multiple of %s." % (number, n))
    number = int(input())