#2221: other ans


1752786-4@g.puiching.edu.mo (林敬晉P5A08(JalenLam_progamer)(IQ...)

School : Pui Ching Middle School
ID : 3260
IP address : [192.168.120.33]
Last Login :
2025-06-05 11:37:15
a178. 10922 - 2 the 9s -- UVa10922 | From: [192.168.120.33] | Post Date : 2025-06-02 21:07

while True:
    a = input()
    if a=='0':
        break
    c = list(map(int,list(a)))
    b = sum(c)
    if b%9==0:
        print(f"{a} is a multiple of 9 and has 9-degree {len(str(b))}.")
    else:
        print(f"{a} is not a multiple of 9.")
# JalenLam_progamer
 
ZeroJudge Forum