0

How to read numbers?

How to read numbers? Code: int x; x = Console.Read(); //Here we insert 1. Console.WriteLine("x ={0}",x); Why the Input is 49?

13th Mar 2020, 3:35 PM
ddtriz
ddtriz - avatar
2 Answers
13th Mar 2020, 3:38 PM
Gouse Basha
Gouse Basha - avatar
+ 1
Thanks Ashraf, but I search a new solution for my answer: *Int* = Convert.ToInt32(*The string*)
13th Mar 2020, 3:46 PM
ddtriz
ddtriz - avatar