Advertisement
Guest User

Untitled

a guest
Mar 19th, 2018
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.46 KB | None | 0 0
  1. #include <iostream>
  2.  
  3. using namespace std;
  4.  
  5. int main()
  6. {
  7. int mini;
  8. int maxi;
  9. int d;
  10. int x;
  11. cout << "dd" << endl;
  12. cin>> d;
  13. cout << "dd" << endl;
  14. cin>> x;
  15. if (x<=d)
  16. x=mini;
  17. else(x=maxi);
  18. while (x!=0){
  19. cin>> x;
  20. if(x<=mini)
  21. x=mini;
  22. if(x>maxi)
  23. x=maxi;
  24. if(x=0)
  25. cout<<mini <<"minimum"<<endl;
  26. cout<<maxi<<"maximum"<<endl;
  27. return 0;
  28. }
  29.  
  30. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement