#include
using namespace std;
int Max(int a, int b)
{
if (a>b) return a;
else return b;
}
int Min(int a, int b)
{
if (a else return b;
}
char F(int a, int b)
{
if (a else if (a>b) return '>';
else return '=';
}
int main()
{
int x, y;
cout << "x = ";<br> cin >> x;
cout << "y = ";<br> cin >> y;
cout << "Max = " << Max(x,y) << "\n";<br> cout << "Min = " << Min(x,y) << "\n";<br> cout << x << F(x,y) << y << "\n";<br> system("Pause");
return 0;
}
Пример:
x = 15
y = 29
Max = 29
Min = 15
15<29</span>