The smallest value will be displayed or a message if they


Write a program in C# 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 . . .

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!!
Programming Languages: The smallest value will be displayed or a message if they
Reference No:- TGS0127702

Expected delivery within 24 Hours