public static void main(String[]args){
int custNO;
System.out.print("请输入本金: ");
Scanner input=new Scanner(System.in);
custNO=input.nextInt();
System.out.println("本金为:"+custNO);
double Firstyear=custNO+custNO*0.0225;
double Thesecondyear=custNO+custNO*0.027*2;
double Thethirdyear=custNO+custNO*0.0324*3;
double Thefifthyear=custNO+custNO*0.036*5;
System.out.println("存取一年后的本息是:"+Firstyear);
System.out.println("存取二年后的本息是:"+Thesecondyear);
System.out.println("存取三年后的本息是:"+Thethirdyear);
System.out.println("存取五年后的本息是:"+Thefifthyear);
}
}
银行利率
最新推荐文章于 2024-05-16 15:50:34 发布