Your program should then sort the integers from small-est


This program allows the user to enter 5 integers. There are no restrictions on these integers. Your program should then sort the integers from small-est to largest using an if-else chain and then display the sorted list to the monitor.

For example, if the file contains: 2 1 2 0-1, your program would display:-1 0 1 2 2

Requirements: Do not use loops or arrays in any way. Do not use any built-in C++ function that might be used for sorting. It is impractical to

enumerate all possibilities in this case. Try to think of a sorting method which is easier to implement, using a series of if-else statements (probably 15 or fewer lines).

Request for Solution File

Ask an Expert for Answer!!
Data Structure & Algorithms: Your program should then sort the integers from small-est
Reference No:- TGS02899732

Expected delivery within 24 Hours