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;
- cin>>a;
- cin>>b;
- cin>>c;
- if(a>b)
- {
- if(a>c)
- {
- if(b>c)cout<<a<<endl<<b<<endl<<c;
- else cout<<a<<endl<<c<<endl<<b;
- }
- }
- if(b>a)
- {
- if(b>c)
- {
- if(a>c)cout<<b<<endl<<a<<endl<<c;
- else cout<<b<<endl<<c<<endl<<a;
- }
- }
- if(c>a)
- {
- if(c>b)
- {
- if(a>b)cout<<c<<endl<<a<<endl<<b;
- else cout<<c<<endl<<b<<endl<<a;
- }
- }
- system("PAUSE");
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement