- 1

Again is it numeric or not :((

Hello guys I'm triying to do a small calculator just for two numbers (that is my homework) in c# . but i need to control that the number1 or number2 which i will enter to the console is numeric or not. Somebody said me use that tryParse method isNumeric method but i couldn't do it. Here is my code can anybody add that method which i couldn't do. My code is between comments

20th Oct 2017, 8:46 PM
Sercan Trs
Sercan Trs - avatar
3 odpowiedzi
+ 4
oh & u could look or on mine calculator code or search for an example here + if I'm not mistaken non-numerics can't be converted to double/int/etc. by default "Don't enter zero" can be changed to just checking in / method for (b=!0) & then if false just tell "nah man, no zeros here" & asking for input again
20th Oct 2017, 8:24 PM
Illusive Man
Illusive Man - avatar
+ 3
pls write it in code playground & post link here. would be much easier to help you... bc we can test it there
20th Oct 2017, 8:23 PM
Illusive Man
Illusive Man - avatar
0
I'm trying to find a solution about this program I tried to use IsNumeric method and tryParse method but both of them gived error can you help me https://code.sololearn.com/cIpSCRtV650V My code is here
20th Oct 2017, 8:46 PM
Sercan Trs
Sercan Trs - avatar