#include <clocale>
using namespace std;
int main() {
int n, s;
int pro = 1;
cout << "Enter numarul N: ";
cin >> n;
while (n != 0)
{
s = n % 10;
n = n / 10;
if ((s % 2 != 0) && (s != 0))
{
pro *= s;
}
}
cout << endl << "Produsul cifrelor impare ale numarului= " << pro << endl;
system("pause");
return 0;
}