Agorithm/백준 알고리즘
백준 알고리즘 4564번 숫자 카드놀이(python)
kimjinho1
2021. 3. 8. 00:11
728x90
반응형
단순 구현 문제이다.
while 1:
n = input()
if n == '0':
break
while len(n) > 1:
res = 1
print(n, end=' ')
for c in n:
res *= int(c)
n = str(res)
print(n)
728x90
반응형