Question: 3) (5 pts) Reference Functions Write a function isort(int& x, int& y, int& z) that will sort 3 integers in descending order. The parameters should
3) (5 pts) Reference Functions Write a function isort(int& x, int& y, int& z) that will sort 3 integers in descending order. The parameters should be reference parameters, which the function modifies to make x the largest and z the smallest. Also write a main) program to test it, which prompts the user for 3 numbers, and then displays them sorted. The test program should loop, asking the user to enter 3 numbers repeatedly, until the user types a non-numeric response. DO NOT use any existing sort function(s) from any C libraries Output from your program might look something like (user input shown in bold): Enter 3 integers to be sorted, or non-numeric character to exit: 11 1 The numbers sorted are: 11 4 1 Enter 3 integers to be sorted, or non-numeric character to exit: 2 9999 22 The numbers sorted are: 9999 22 2 Enter 3 integers to be sorted, or non-numeric character to exit: x Press any key to continue.. Demonstrate your program for your instructor's signature
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
