Data goes on a new line when you output a newline character. You can keep all the output on one line by NOT outputting a newline character until you want the next output to go to the next line.
The...