Question
C++. Write a program that inputs two numbers and determines which of the two numbers is the smallest. If the numbers are equal, display a
C++. Write a program that inputs two numbers and determines which of the two numbers is the smallest. If the numbers are equal, display a message that they are equal. Using the pseudocode 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
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