I am trying to write a code that will sort three integers from lowest to highest but my code isn't producing the desired results. The code only cout's the number in the middle three times.
I changed the [1] to and i and it seems to be working better.
I dont understand going out of bounds?
Now the program outputs the numbers in the correct order, but for some reason the first number defaults to zero for some some reason example 0, 14, 25 even tho I inputted 1, 14, 25.