Advertisement
heian

Untitled

May 29th, 2019
115
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.35 KB | None | 0 0
  1. #include <iostream>
  2.  
  3. using namespace std;
  4.  
  5. int main()
  6. {
  7. int a,b,c,d;
  8. cin>>a>>b>>c>>d;
  9. //a,b crescator
  10. if(a>b)
  11. {
  12. int aux=a;
  13. a=b;
  14. b=aux;
  15. }
  16. //c,d descrescator
  17. if(c<d)
  18. {
  19. int aux=c;
  20. c=d;
  21. d=aux;
  22. }
  23. cout<<a<<" "<<b<<" "<<c<<" "<<d<<"\n";
  24. return 0;
  25. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement