public class calc {
public static void main(String[] args) {
char ch;
do
{
Scanner scn=new Scanner(System.in);
ch=scn.next().charAt(0);
int a=scn.nextInt();
int b=scn.nextInt();
switch(ch)
{
case '+':
int c=a+b;
System.out.println(""+c);
break;
case '-':
int d=a-b;
System.out.println(""+d);
break;
case '*':
int e=a*b;
System.out.println(""+e);
break;
case '/':
int f=a/b;
System.out.println(""+f);
break;
case '%':
int g=a%b;
System.out.println(""+g);
break;
case 'X':
break;
case 'x':
break;
default:
System.out.println("Invalid operation.Try again");
break;
}
}
while(ch==‘X’||ch==‘x’);
}
}