char operator =Sc.next().charAt(0);
int result ;
switch (operator) {
case '+':
result: Efirst + second;
break;
case '-':
result: Efirst - second;
break;
case'*':
result: first * second;
break;
case'/' :
result: Efirst / second;
break;
default:
System.out.println("Error! operator is not correct");
return;. illegal start of expression showing ... why it is showing ?
Answers
Answered by
0
Answer:
i guess u did not mention case 1 case 2 etc
Explanation:
Similar questions