+ 1
Convert.Tolnt32(Console.ReadLine()); do?
3 ответов
+ 3
it take a string input from the user using "Console.ReadLine()" method and then converts that string into an integer using "Convert.ToInt32()" method.
It is often used when you need to input an integer value from the user .
+ 1
it takes the user input and converts it to an intger
0
it should be string a = Convert.ToInt32(Console.ReadLine()); Its wait an input from the keyboard and an enter and converting to an integer.