package MainTest;
public class Computer {
public static void main(String[] args) {
if(args.length<3){
System.out.println("plese read n1 op n2");
System.exit(-1);
}
double n1 = Double.parseDouble(args[0]);
double n2 = Double.parseDouble(args[2]);
double d=0;
if(args[1].equals("+")){
d=n1 + n2;
}else if(args[1].equals("-")){
d=n1 - n2;
}else if(args[1].equals("/")){
d=n1/n2;
}else if(args[1].equals("*")){
d=n1*n2;
}else{
System.out.println("error");
System.exit(-1);
}
System.out.println(d);
}
}