listing3.4.java

来自「java 完全探索的随书源码」· Java 代码 · 共 11 行

JAVA
11
字号
/* Set up the desired loan parameters
 * and call the method that computes
 * the monthly payment amount
 */
int numPayments = 3 * 12;        /* 3 years of monthly payments */
double interestRate = 0.08 / 12; /* 8% annual interest paid monthly */

double payment = computePayment( interestRate, numPayments,
  5000.0 /* hard code the loan amount for now */ );

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?