2194: 【例32.3】 数位积

Memory Limit:64 MB Time Limit:1.000 S
Judge Style:Text Compare Creator:
Submit:37 Solved:6

Description

給出一个非负整数$n$,请求出$n$中各个数位上的数字之积。

Input

一开始有一个整数 $T$($1≤T≤100$),表示共有几组测试数据。接下来有$T$个整数$n$($0≤n<2147483648$)。

Output

输出数位数字乘积的结果。

Sample Input Copy

3
356
123
9999

Sample Output Copy

90
6
6561

Source/Category