Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- int min(int a, int b){ return (a > b) ? b : a; }
- int max(int a, int b){ return (a > b) ? a : b; }
- int main()
- {
- int a, b, c, d;
- cin >> a >> b >> c >> d;
- cout
- << "\t" << min(min(a, b), min(c, d))
- << "\t" << min(max(min(a, b), min(c, d)), min(max(a, b), max(c, d)))
- << "\t" << max(max(min(a, b), min(c, d)), min(max(a, b), max(c, d)))
- << "\t" << max(max(a, b), max(c, d));
- system("pause");
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement