#include <iostream>
using namespace std;
int main()
{
int num1, num2, width, height, attitude, S;
cout << "Enter the first number: ";
cin >> num1;
cout << "Enter the second number: ";
cin >> num2;
if ((num1 >= 2) && (num1 <= 100))
{
if (num1 <= 50)
{
int num1 = width;
int num2 = height;
cout << width;
}
else
{
int num1 = height;
int num2 = width;
}
} else {
cout << "The number must be > 2 and < 100";
}
}
#include <iostream>
using namespace std;
int main()
{
int num1, num2, width, height, attitude, S;
cout << "Enter the first number: ";
cin >> num1;
cout << "Enter the second number: ";
cin >> num2;
if ((num1 >= 2) && (num1 <= 100))
{
if (num1 <= 50)
{
width = num1;
height = num2;
cout << width;
}
else
{
height = num1;
width = num2;
}
} else {
cout << "The number must be > 2 and < 100";
}
}