import java.util.Scanner;
public class Test {
public static void main(String[] args) {
Scanner input=new Scanner(System.in);
System.out.println("输入第一个数");
double x=input.nextDouble();
System.out.println("输入第二个数");
double y=input.nextDouble();
System.out.println("输入运算符");
String op=input.next();
if ("+".equals(op)) {
System.out.println("结果是:"+(x+y));
}else if ("-".equals(op)) {
System.out.println("结果是:"+(x-y));
}else if ("*".equals(op)) {
System.out.println("结果是:"+(x*y));
}else if ("/".equals(op)) {
System.out.println("结果是:"+(x/y));
}else {
System.out.println("出现异常");
}
}
}