Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- int main()
- {
- int a,b,c,d;
- cin>>a>>b>>c>>d;
- //a,b crescator
- if(a>b)
- {
- int aux=a;
- a=b;
- b=aux;
- }
- //c,d descrescator
- if(c<d)
- {
- int aux=c;
- c=d;
- d=aux;
- }
- cout<<a<<" "<<b<<" "<<c<<" "<<d<<"\n";
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement