+ 1
Hey guys, Im making a calculator in C# console app, how do I ONLY allow Numbers?
Calculator C#
4 Answers
+ 1
Maybe, converting might show an error if the input is string.
It wont be able to convert string to int.
So maybe use a try exept
+ 1
Henrique
Use Convert.ToInt32()
0
try TryParse() in while/do-while
0
Thanks