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.
45 lines
816 B
45 lines
816 B
package test;
|
|
import java.util.Scanner;
|
|
public class Main {
|
|
public static void main(String[] args) {
|
|
Scanner in=new Scanner(System.in);
|
|
String s=in.nextLine();
|
|
String a=new String("e");
|
|
String b=new String("log");
|
|
String g=new String("+");
|
|
String h=new String("-");
|
|
String l=new String("*");
|
|
String m=new String("/");
|
|
if(s.equals(a)) {
|
|
ex E=new ex();
|
|
ex.main("");
|
|
|
|
}
|
|
else if(s.equals(g)||s.equals(h)||s.equals(l)||s.equals(m)) {
|
|
jjcc jc=new jjcc();
|
|
if(s.equals(g)) {
|
|
jc.addition();
|
|
}
|
|
else if(s.equals(h)) {
|
|
jc.subtraction();
|
|
}
|
|
else if(s.equals(l)) {
|
|
jc.multiplication();
|
|
}
|
|
else(s.equals(m)){
|
|
jc.division();
|
|
}
|
|
}
|
|
else if(s.equals(b))
|
|
{
|
|
Logax log=new Logax();
|
|
log.main("");
|
|
}
|
|
else {
|
|
sc SC=new sc();
|
|
SC.main("");
|
|
}
|
|
}
|
|
|
|
}
|