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 计算器指数运算;
|
|
|
|
import java.util.Scanner;
|
|
|
|
public class a {
|
|
|
|
public static void pow() {
|
|
System.out.println("请输入指数");
|
|
Scanner sc= new Scanner(System.in);
|
|
double a=sc.nextDouble();
|
|
double b = Math.E;
|
|
double c = Math.pow(b, a);
|
|
System.out.println("运算结果是"+c);
|
|
|
|
|
|
}
|
|
}
|