Advertisement
Guest User

Untitled

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