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.
|
|
|
|
package guangzhaowei;
|
|
|
|
|
|
|
|
|
|
import java.util.Scanner;
|
|
|
|
|
|
|
|
|
|
public class Easy {
|
|
|
|
|
public static void c(){
|
|
|
|
|
Scanner sc=new Scanner(System.in);
|
|
|
|
|
System.out.println("<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>һ<EFBFBD><D2BB><EFBFBD><EFBFBD><EFBFBD><EFBFBD>:");
|
|
|
|
|
double x=sc.nextDouble();
|
|
|
|
|
System.out.println("<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ڶ<EFBFBD><DAB6><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>");
|
|
|
|
|
double y=sc.nextDouble();
|
|
|
|
|
System.out.println("<22><>ѡ<EFBFBD><D1A1><EFBFBD><EFBFBD>Ӧ<EFBFBD><D3A6><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ӧ<EFBFBD><D3A6><EFBFBD><EFBFBD><EFBFBD><EFBFBD>(1:<3A>ӷ<EFBFBD> 2:<3A><><EFBFBD><EFBFBD> 3:<3A>˷<EFBFBD> 4:<3A><><EFBFBD><EFBFBD>)");
|
|
|
|
|
int c=sc.nextInt();
|
|
|
|
|
double d=0;
|
|
|
|
|
switch(c) {
|
|
|
|
|
case 1:d=x+y;System.out.println("<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> "+d);break;
|
|
|
|
|
case 2:d=x-y;System.out.println("<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> "+d);break;
|
|
|
|
|
case 3:d=x*y;System.out.println("<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> "+d);break;
|
|
|
|
|
case 4:d=x/y;System.out.println("<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> "+d);break;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|