[java]代码库
import java.util.Scanner;
public class CCCCC {
/**
* @param args
*/
public static void main(String[] args) {
// TODO Auto-generated method stub
System.out.print("请输入本金:\n");
Scanner input = new Scanner(System.in);
int BJ = input.nextInt();
System.out.println("本金为:" + BJ );
double YN = 0.0225;
double LN = 0.027;
double SN = 0.0324;
double WN = 0.036;
double CYN = BJ+BJ*YN;
System.out.println("存取一年后的本息是:\n" + CYN);
double CLN = BJ+BJ*2*LN;
System.out.println("存取两年后的本息是:\n" + CLN);
double CSN = BJ+BJ*3*SN;
System.out.println("存取三年后的本息是:\n" + CSN);
double CWN = BJ+BJ*5*WN;
System.out.println("存取五年后的本息是:\n" + CWN);
}
}
中级程序员
by: 东城 发表于:2016-05-12 09:56:55 顶(0) | 踩(0) 回复
回复评论