+ 1
Hey everyone, just trying to make a simple calculator but computer says no. Can anyone help?
6 Réponses
+ 3
Your variable op is a char, so your switch cases must be char too: '+', '-', '/' ...
And your div will fail if you devide by zero.
+ 1
Thank you 🙂
0
Oh yeah, thank you. Still not working though 🤷♀️
0
Thanks ~ swim ~ .... didn't know that. It's still not working though!