How to read numbers? | Sololearn: Learn to code for FREE!
Neuer Kurs! Jeder Programmierer sollte generative KI lernen!
Kostenlose Lektion ausprobieren
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 Antworten
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