一道数学题
# 已知50个1998相乘的结果是a,a的各位数的和是b, b的各位数的和是c,c的各位数的和是d, # 求d的值 a = 1998 ** 50 print(a) str_a = str(a) b = 0 for i in str_a: b += int(i) print(b) str_b = str(b) c = 0 for i in str_b: c += int(i) print(c) str_c = str(c) d = 0 for i in str_c: d += int(i) print(d)