Answers

The Brainliest Answer!
2014-07-21T23:26:19+05:30
 int a,b,result=0;            char c;

System.out.println("Enter no. :");             a = input.nextInt();             System.out.println("Enter no. :");             b = input.nextInt();             System.out.println("Enter Operator :");             String st = input.next();             c = st.charAt(0);
Switch(c)
{
case '+' :
result = a+b;
System.out.println("Result = "+result);
break;
case '-' :
result = a-b;
System.out.println("Result = "+result);
break;
case '*' :
result = a*b;
System.out.println("Result = "+result);
break;
case '/' :
result = a/b;
System.out.println("Result = "+result);
break;
default :
System.out.println("Syntax error");
}
}
}





1 5 1