I made the mistake of taking this intro c++ class and I am incredibly frustrated and confused.
I am supposed to be putting 6 numbers in order from smallest to largest but we're not allowed to use arrays, only if statement. How the heck do I get them to print out from smallest to largest if I enter 6 5 4 3 2 1.
This sounds like a job for a sorting algorithm the simplest one would probably be bubble sort. you can Google different examples on what bubble sort is and how to implement it. Another simple one would be insertion sort. you can Google insertion sort to get more info too.