Question: Write a CH program that prompts the user to enter two integers x and y. The program must check for the larger of the two

 Write a CH program that prompts the user to enter two

Write a CH program that prompts the user to enter two integers x and y. The program must check for the larger of the two numbers using if If the variables are unequal, it must print the two input numbers and the larger number. But if the variables are equal, it must print the two input numbers and then "Equal". Use cin and cout. I For example, here are three sample input and outputs: Input two integers: 5 6 output: x=5, y=6, Larger-6 Input two integers: 15 18 Output: x=15, y=18, Larger=18 Input two integers: 5 5 Output: x=5, y=5, Equal

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!