作业2(6)某客户为购房办理商业贷款,选择了按月等额本息还款法,在贷款本金(loan)和月利率(rate)一定的情况下,住房贷款的月还款额(money)取决于还款月数(month),...
#include#includeintmain(void){intyear;doubleloan,money,my,rate;scanf_s("%lf",&loan);/*读入loan和rate*/scanf_s("%lf",&rate);printf("yearmoney\n");for(year=5;year<=30;year++){/*利用循环计算算式*/my=pow(1+rate,12*y