Question: 1.Write a program that asks the user to enter two numbers. The program should use the conditional operator/expression to determine which number is the smaller

1.Write a program that asks the user to enter two numbers. The program should use the conditional operator/expression to determine which number is the smaller and which is the larger of the two.

2.Write a program that asks the user to enter a number within the range of numbers equivalent to the lowercase alphabet. Use a switch statement to display the alphabet version of that number.

Ex: Input two numbers 12 is the larger number. 9 is the smaller number. Input a number within the range of 1 to 10. Your number is VIII 

#include using namespace std;

int main() { int number1, number2, largest, smallest; int romanNumber; cout << "Input two numbers" << endl; cin >> number1 >> number2; cout << "Input a number within the range of 1 to 10" << endl; cout << "Your number is ";

} return 0; }

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!