N-am prea inteles intrebarea ta, dar cred ca asta e rezulvarea:
#include <iostream>using namespace std;int main(){ int a, P, x, y; cout << " Valoare= "; cin >> a; y=1; while (y>=0){ cin >> y; P=1; if (y>=100 && y<=999){ x=y; while (x!=0){ P=P*x%10; x=x/10; } if (P>a) cout << y << " are produsul cifrelor mai mare decat " << a << endl;; } } }