点击运行
public class Main { public static void main(String args[]) { double x = 11.635; double y = 2.76; System.out.printf("The value of e is %.4f%n", Math.E); System.out.printf("log(%.3f) is %.3f%n", x, Math.log(x)); } }
运行结果 :
正在执行...