Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- main()
- {
- int a, b, c, t;
- bool p = false;
- cin >> a;
- t = a;
- cin >> b;
- if (b<t)
- t = b;
- cin >> c;
- if (c<t)
- t = c;
- if (a!=t)
- cout << a << endl;
- else
- p = true;
- if (b!=t || p==true)
- cout << b << endl;
- else
- p == true;
- if (c!=t || p==true)
- cout << c << endl;
- system("PAUSE");
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement