fork download
  1. n=int(input())
  2. s=1
  3. if (n!=0):
  4. a=n%10
  5. s=s*a
  6. n=n//10
  7. print(f"數字{n}的每一位乘積是:{s}")
Success #stdin #stdout 0.04s 9348KB
stdin
456
stdout
數字45的每一位乘積是:6