#include <iostream>
using namespace std;
int main()
{
int a, b;
cout << "Enter number 1\n";
cin >> a;
cout << "Enter number 2\n";
cin >> b;
if (a > b) {
cout << a <<endl;
cout << b <<endl;
}
else {
Объяснение:
#include <iostream>
using namespace std;
int main()
{
int a, b;
cout << "Enter number 1\n";
cin >> a;
cout << "Enter number 2\n";
cin >> b;
if (a > b) {
cout << a <<endl;
cout << b <<endl;
}
else {
cout << b <<endl;
cout << a <<endl;
}
}
Объяснение: