Write a c++ program that inputs two numbers


Write a C++ program that inputs two (2) numbers and determines which of the two numbers is the smallest. If the numbers are equal, display a message that they are equal.

Sample Output from Program:

You will be asked to enter two numbers.
The smallest value will be displayed or a message if they are the same.

Please enter a numeric value: 4
Please enter a numeric value: 7

The smallest value is 4
Press any key to continue . . .


Using the pseudo code below, write the code that will meet the requirements:

Display description of program
Prompt the user for the first number
Prompt the user for the second number
If first number equals second number
Display the two numbers are equal
Else 
If first number is greater than second number
Assign second number to smallest
Else
Assign first number to smallest
End-If
Display smallest number
End-If

Request for Solution File

Ask an Expert for Answer!!
C/C++ Programming: Write a c++ program that inputs two numbers
Reference No:- TGS0134648

Expected delivery within 24 Hours