Advertisement
marijak

Untitled

Oct 18th, 2018
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.35 KB | None | 0 0
  1. int s,x,y1,y2,y3,y4;
  2. cin>>s;
  3.  
  4. x>=1000;
  5.  
  6. while (x<=9999)
  7. {
  8. y1=x%10;
  9. x=x/10;
  10. y2=x%10;
  11. x=x/10;
  12. y3=x%10;
  13. x=x/10;
  14. y4=x;
  15. if(y1*y2*y3*y4==s)
  16. x++;
  17.  
  18. }
  19. cout<<x;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement