title: How to get the outputs on a single line?
body: <p>I've got this program that gives me all the right outputs, but I am not able to get them on a single line for some reason. Below shown is a sample execution of the code that the homework wants.</p>