- 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
3 Réponses
+ 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
+ 3
pls write it in code playground & post link here.
would be much easier to help you... bc we can test it there
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