Pages

Friday, July 29, 2011

a149. 乘乘樂


#include

using namespace std;

int main()
{
int num;
cin>>num;
for(int i=0;i {
int integer;
int mul,mul_sum=1;
cin>>integer;
while(integer%10!=0)
{
mul = integer%10;
mul_sum *= mul;
integer /= 10;
}
cout<
}
return 0;
}

No comments:

Post a Comment