Question
Write a C++ program such that in main(), it reads 3 inputs from the user into three integer variables as determines the order as follows:
Write a C++ program such that in main(), it reads 3 inputs from the user into three integer variables as determines the order as follows: Your program must have a function accepting 3 integer type arguments which will be called with the 3 integers read from the user. The function will determine the order of the three numbers, but not output the result. The result will be printed out in the main() procedure after the function call. Only thing your main() function is allowed to do is read input from the user and output the numbers in the right order. First line of your output must be the smallest number, the second line the middle number and the last line must be the largest number.
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