+ 2

[Resolved] What the command that do the user enter with some numbers? ?(l've tried the Console.readline)ps sorry for my ingles.

6th Oct 2018, 12:46 PM
Infomatica ///1ano
Infomatica ///1ano - avatar
3 Réponses
+ 5
int input = int.Parse(Console.ReadLine());
6th Oct 2018, 1:12 PM
Potato Squad
Potato Squad - avatar
+ 2
I think int.TryParse is better option than Int.Parse
6th Oct 2018, 1:43 PM
Asgar Ali
Asgar Ali - avatar
+ 1
thank you very much,it worked perfectly.
6th Oct 2018, 1:46 PM
Infomatica ///1ano
Infomatica ///1ano - avatar