Completed output application

used cout with integer variable on the same line.