+ 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! :)
1 Answer
+ 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 :)