📄 exercise3_10.java
字号:
public class Exercise3_10 {
public static void main(String[] args) {
System.out.println("kilograms\t\tpounds\t|\tpounds\tkilograms");
System.out.println("---------------------------------------------");
int kilograms = 1; int pounds = 20;
for (int i = 1; i <= 100; kilograms += 2, pounds += 5, i++) {
System.out.println(kilograms + "\t\t" + kilograms * 2.2 + "\t|\t" + pounds + "\t\t" + pounds / 2.2);
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -