Output is correct. Can't understand where is the problem. Output of the program (if were inserted numbers as strings). 1 1 2 2 3 3 4 4 5 5 6 6 7 7 8 8 9 9 10 10