+ 1
math operator Switch
Hi! whith Which Of variables I Can switch Between Math Operators Such As +,-,×,÷
9 Respuestas
+ 2
char data type
+ 2
switch(...){
case x: ....
break;
case x: ...
break;
case x:
+ 1
When Using Char All of Cases Will Be Selected!!!
sry I Cant Speak English Well
+ 1
no use break;
it's not only with char
+ 1
yes and you can post it in sololearn code playground too there program runs directly .
+ 1
I Saved It In My Codes . Named Problem
+ 1
I understand the problem. it is
switch(opearator){
case '+': num2=num1+num2;
break;
case '-': num2=num1-num2;
break;
case '*': num2=num1*num2;
break;
0
Can I Send You My Code In A Social Network ?
And You Tell Me Where Is Problem?
0
Yes! Its Correct!!! Tnx Alot About Your Guidance