package com.chen.method;
import java.util.Scanner;
public class Demo06 {
public static void main(String[] args) {
int i = 1;
while (i >0){
//输入
Scanner scanner = new Scanner(System.in);
//值1
double num1 = scanner.nextDouble();
//输入符号
String symbol = scanner.next();
//值2
double num2 = scanner.nextDouble();
switch (symbol) {
case "+":
System.out.println(num1 + num2);
break;
case "-":
System.out.println(num1 - num2);
break;
case "*":
System.out.println(num1 * num2);
break;
case "/":
System.out.println(num1 / num2);
break;
}
}
}
}