Hello I am having a problem with my program. Everytime I try to start the program, I keep getting a continuously infinite stream of numbers and sentences. The purpose of this program is to take 50 values from a file and sort them into even and odd columns and to also find the max and min of the values, by only useing one while loop. I have tried everything am keep getting the infinite stream, I do not know what is wrong with my program and would appriciate a little help. Also there is the return 0; and closed brackets at the end, couldn't fit it all into the picture. Thank you in advance!
Sorting Even/Odd numbers and Max/min from a file using while loops-capture-jpg