📄 testmath.java
字号:
import java.util.*;
class TestMath {
public static void main(String args[]) {
System.out.println("圆周率PI的值为:"+Math.PI);
System.out.println("60度的Sin值为:"+Math.sin(Math.PI/3));
System.out.println("10和30中较大的数为:"+Math.max(10,30));
System.out.println("10的平方根为:"+Math.sqrt(10));
System.out.println("2的7次方为:"+Math.pow(2,7));
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -