+ 1
Help me understand
Please help me understand the use of Console.ReadLine
8 Respostas
0
I don't have much information about C#, but Console.ReadLine is a function that takes input from the user to use it or to store it in a variable
0
Console.Readline("hello world")
0
How does the user make the imput uknown decoder
0
print (hi man)
0
Ikethedev for example,
Console.ReadLine()
Will take an input from the user. Then you can store it in a variable like:
String a = Console.ReadLine();
It will ask the user for input, then you can work with the variable `a` like printing it:
Console.WriteLine(a);
Try entering an input here and observe how it works:
https://sololearn.com/compiler-playground/cbsi51T7IXmo/?ref=app
0
To let someone else input. Like in a game when it asks for your name and uses it throughout
0
Console.ReadLine() in C# is a method to read a single line of text input from the user via the console and return it as a string data type.