《完美C++》1.4客户贷款问题
#include<iostream>
using namespace std;
int main()
{
double real_loans,rate,time;
cin>>real_loans>>rate>>time;
double apply_loans=real_loans/(1-rate/100*time/12),month_repay=apply_loans/time;
cout<<"apply_loans should be "<<apply_loans
<<endl<<"month_repay should be "<<month_repay<<endl;
system("pause");
}

浙公网安备 33010602011771号