Convert.Tolnt32(Console.ReadLine()); do? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

Convert.Tolnt32(Console.ReadLine()); do?

4th Aug 2016, 4:00 AM
Playjoy “Kungpoww” Of Death
Playjoy “Kungpoww” Of Death - avatar
3 Answers
+ 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 .
4th Aug 2016, 5:53 AM
Javeria Khan
+ 1
it takes the user input and converts it to an intger
10th Aug 2016, 1:34 AM
Reem Alashhab
Reem Alashhab - avatar
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.
4th Aug 2016, 4:31 AM
Róbert Pécz
Róbert Pécz - avatar