View difference between Paste ID: TqPHzb37 and dGm1RkZf
SHOW: | | - or go back to the newest paste.
1
#include <iostream>
2
3
using namespace std;
4
5-
int min(int a, int b){return (a > b) ? b : a;}
5+
int min(int a, int b){ return (a > b) ? b : a; }
6-
int max(int a, int b){return (a > b) ? a : b;}
6+
int max(int a, int b){ return (a > b) ? a : b; }
7
int main()
8
{
9-
    int a, b, c, d;
9+
	int a, b, c, d;
10-
    cin >> a >> b >> c >> d;
10+
	cin >> a >> b >> c >> d;
11-
    cout << min(min(a, b), min(c, d)) << "\t" << max(min(a, b), min(c, d)) << "\t" << min(max(a, b), max(c, d)) << "\t" << max(max(a, b), max(c, d));
11+
	cout 
12-
    system("pause");
12+
		<< "\t" << min(min(a, b), min(c, d))
13-
    return 0;
13+
		<< "\t" << min(max(min(a, b), min(c, d)), min(max(a, b), max(c, d)))
14
		<< "\t" << max(max(min(a, b), min(c, d)), min(max(a, b), max(c, d)))
15
		<< "\t" << max(max(a, b), max(c, d));
16
	system("pause");
17
	return 0;
18
}