n=int(input())s=1if (n!=0): a=n%10 s=s*a n=n//10print(f"數字 {a} 的每一位乘積是:{s}")
456
數字 6 的每一位乘積是:6
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!