Plz explain int a=int32.parse(Console.ReadLine()) ; What is parse? How to use Console.ReadLine? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Plz explain int a=int32.parse(Console.ReadLine()) ; What is parse? How to use Console.ReadLine?

6th Aug 2016, 4:41 AM
CH.Durga Prasanna Kumar
CH.Durga Prasanna Kumar - avatar
5 Answers
+ 1
is parse the same like Convert.ToInt32(); ?
6th Aug 2016, 11:55 AM
Nick Garbusa
Nick Garbusa - avatar
+ 1
Although int.TryParse(Console.ReadLine(), out a); would prevent the program from (sometimes) crashing when the user inputs a non-integer value.
6th Aug 2016, 1:06 PM
Samuel Neo
Samuel Neo - avatar
0
use parse to convert int to string* type . and use Console.ReadLine() to input Dos
6th Aug 2016, 9:33 AM
Hussein Saad
Hussein Saad - avatar
0
Pars like convert
6th Aug 2016, 10:25 AM
alireza
0
int.tryparse(console.readline())
6th Aug 2016, 2:33 PM
Hali Simen
Hali Simen - avatar