2014年3月31日

Math类的方法应用

摘要: 1 class Mortgage 2 { 3 public static void main(String[]args) 4 { 5 double P=Double.parseDouble(args[0]); 6 double rate=Double.parseDouble(args[1]); 7 double R=rate/(12*100); 8 int N=Integer.parseInt(args[2])*12; 9 double C=P*(R/(1-Math.pow((1+R),-N)));10 System.out.print... 阅读全文

posted @ 2014-03-31 17:43 java菜鸟---板砖 阅读(327) 评论(0) 推荐(0) 编辑

导航