#include "stdio.h"
int fun(unsigned int n)
{
int t=1,s=1;
if (n / 10 == 0)
return n;
else
{
do
{
t = n % 10;
if (t != 0)
{
s *= t;
}
n /= 10;
} while (n != 0);
return fun(s);
}
}
int main()
{
unsigned int n;
scanf("%d", &n);
printf("%d", fun(n));
return 0;
}
0.0分
0 人评分