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,maax1,maax2;
- cin>>a>>b>>c>>d;
- if (a>b)
- maax1=a;
- else
- maax1=b;
- if(c>d)
- maax2=c;
- else
- maax2=d;
- if(maax1>maax2)
- cout<<maax1;
- else
- cout<<maax2;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement