2013年10月20日
摘要: /*还款年限-月还款表*/#include #include int main(void) { int year; double loan,money,rate,x; scanf("%lf",&loan); scanf("%lf",&rate); printf("year money\n"); for(year=5;year<=30;year++){ /*进入循环,计算5-30年的情况*/ x=pow(1+rate,12*year); money=loan*rate*x/(x-1); print... 阅读全文
posted @ 2013-10-20 23:41 yy99 阅读(163) 评论(0) 推荐(0) 编辑