write a loop that reads positive integers from standard input and that terminates when it reads an integers that is not positive . After the loop terminates , it prints out separate by a space on a single line