Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- int s,x,y1,y2,y3,y4;
- cin>>s;
- x>=1000;
- while (x<=9999)
- {
- y1=x%10;
- x=x/10;
- y2=x%10;
- x=x/10;
- y3=x%10;
- x=x/10;
- y4=x;
- if(y1*y2*y3*y4==s)
- x++;
- }
- cout<<x;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement