Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started