Completed output application

used cout with integer variable on same line