+ 1

Pre-written text when console is awaiting user input. C#

I've just started learning, and am trying to play with console app. Question: When the app is running and awaits response from the user "Console.ReadLine();" I want to see the output like: "user: ", so that user will write not in the new line, but continue after the word "user: ". I have no idea how to explain it better, unfortunately, so I hope you get it. Thank you in advance! :)

3rd Feb 2017, 9:59 PM
Igor Ilnicky
Igor Ilnicky - avatar
1 Resposta
+ 3
just write ;) Console.Write ("user: "); so you print "user" on the screen and do not jump to the next line so the input is next to your string :)
3rd Feb 2017, 10:23 PM
R4xx4r
R4xx4r - avatar