+ 3
Console.ReadLine
i still dont quite get what this command does.
2 ответов
+ 1
@Donna : Console.WriteLine will print every text in an new line not ReadLine.
ReadLine gets a input from a keyboard and saves the input in a variable
string input; // this is the variable
input = Console.ReadLine(); //Console.ReadLine save the input from the keyboard in the variable
Console.WriteLine(input);// Console.WriteLine print the output to the screen.
In the playground all inputs need to be given before the code runs.
So when you get the pop-up box "Seems that your program requires input", you have to give your input there.
https://code.sololearn.com/c2d47aW9Mm64