import java.util.Scanner;
public class Demo_1 {
public static void main(String[] args) {
int num1;
int num2;
String s="";
Scanner sc = new Scanner(System.in);
System.out.println("欢迎使用巨无霸计算器");
System.out.println("请输入第一个数字");
num1 = sc.nextInt();
System.out.println("请输入第二个数字");
num2 = sc.nextInt();
System.out.println("请输入计算符号");
s = sc.next();
switch (s){
case "+":
System.out.println(num1+num2);
break;
case "-":
System.out.println(num1-num2);
break;
case "*":
System.out.println(num1*num2);
break;
case "/":
if (num2==0){
System.out.printf("除数为0,无法进行计算");
break;
}
System.out.println(num1/num2);
break;
}
System.out.println("巨无霸计算器处理完成,谢谢使用");
}
}