#include <iostream>
using namespace std;
int main(){
int a;
string str;
cin>>a;
for(int i=0;i<a;i++){
int total=1;
cin>>str;
for(int j=0;j<str.size();j++)
total*=(str[j]-48);
cout<<total;
}
return 0;
看一下範例輸出
90 6 6561
輸出對於每個數字 n 的結果後,請換行