You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
puinhs5w9/Calculator.java

37 lines
598 B

5 years ago
package guangzhaowei;
import java.util.Scanner;
public class Calculator{
public static void main(String[] args){
char e;
boolean f=true;
Scanner in = new Scanner(System.in);
while(f){
System.out.println("<22><>ѡ<EFBFBD><D1A1><EFBFBD><EFBFBD><EFBFBD>ʽ<E3B7BD><CABD>+<2B><>-<2D><>*<2A><>/<2F><>^<5E><>"
+ "<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>l<EFBFBD><6C><EFBFBD><EFBFBD><EFBFBD>Ǻ<EFBFBD><C7BA><EFBFBD><EFBFBD><EFBFBD>s<EFBFBD><73><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>˳<EFBFBD><CBB3><EFBFBD>e");
e=in.next().charAt(0);
switch(e){
case '+':case '-':case '*':case '/':
Easy.c();
break;
case '^':
Exp.pow();
break;
case 'l':
Logarithm.log();
break;
case 's':
Triangle.angle();
break;
case 't':
f=false;
}
}
}
}