📄 ch2ex14.java
字号:
public class ch2ex14{
public static void main(String[]args){
int x=10;
int y=-13;
//find max of x,y
int l=Math.max(x,y);
System.out.println(l);
//find the absolute of y
l=Math.abs(y);
System.out.println(l);
//compute 3 to the power of 4
double t=Math.pow(3,4);
System.out.println(t);
//test round
l=(int)(Math.round(3.55));
System.out.println(l);
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -