Please help... This is driving me nuts. I have been searching for an answer to this for a few days now.
In c...
How do you stop a line feed or new line after pressing enter for an input. I want the printed information to appear on the same line as the input. Nothing I have tried prevents the cursor from moving to the next line after typing an integer then pressing enter. There has got to be a simple answer to this.
My appologies if this has been answered before, but my searches keep coming up empty.
Here is what I get:
Input Output
27
27
What I want it:
Input Output
27 27
Thanks for any assistance you can provide.