completed output app

used cout with integer variable on same line