?? ex2_12.java
字號:
import javax.swing.JOptionPane;/** * * @author xiaolei */public class EX2_12 { public static void main(String[] args) { double amount, rate, years, result; amount = Double.parseDouble(JOptionPane.showInputDialog("資金額:")); rate = Double.parseDouble(JOptionPane.showInputDialog("年利率:")); years = Double.parseDouble(JOptionPane.showInputDialog("年數:")); result = amount * (Math.pow((1 + rate / 12), years * 12)); System.out.println("將來資金額:" + result); }}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -