Write a program that reads a sequence of integers
and prints the integers in increasing order.
You may assume that there are at most 1000 integers,
and that each integer is between -1000000 and 1000000.
Do not ask the user in advance how many integers there are.
Hint: Once you have read the integers into an array,
find and print the smallest integer,
put the last integer in place of the smallest integer,
and repeat.
If the input is
9 0 3 5 2 6 4
then your array will change as follows:
9 0 3 5 2 6 4 print 0
9 4 3 5 2 6 print 2
9 4 3 5 6 print 3
9 4 6 5 print 4
9 5 6 print 5
9 6 print 6
9 print 9