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
Get step-by-step solutions from verified subject matter experts
