.
int ProdDig(int n) { if (n<=0) return -1; int product=1; while (n>0) { product*=(n%10); n/=10; } return product; }