Question: 4.1 Lab 18: Min and Max Using If-Else Write a complete C++ program that reads in two integers. Assume that the numbers entered are not

4.1 Lab 18: Min and Max Using If-Else

Write a complete C++ program that reads in two integers. Assume that the numbers entered are not equal to each other. The program should determine the minimum and maximum of the two numbers using an if-else construct.

When the input is as shown in Figure 1, your program should produce the output as shown in Figure 2.

Figure 1: (sample input)

1 100 

Figure 2: (sample output)

Maximum of 1 and 100 is 100 Minimum of 1 and 100 is 1 

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!