commit
affeb40183
@ -0,0 +1,12 @@
|
||||
package guangzhaowei;
|
||||
import java.util.Scanner;
|
||||
public class Exp {
|
||||
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);
|
||||
}
|
||||
}
|
Loading…
Reference in new issue