the Console class supports 2 static methods for reading: Console.ReadLine() and Console.Read(), both of which return strings.
You can then use Int.Parse(string) (or Float.Parse() or whichever value type you need) to get the data from the returned string. An added nicety is that the Parse()...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.