for loop 运算问题
OldBalance = PR;MonthlyPayment = MP;
Interestpaid = OldBalance * IM;
Principalpaid = MP - (OldBalance * IM);
NewBalance = OldBalance - Principalpaid;
for(Month=1;;Month++);
printf("\nMonth Banlace Payment paid paid Balance\n");
printf("===== ========= ========= ========= ========= =========\n");
printf(" %d %2lf %2lf %2lf %2lf %2lf\n", Month, OldBalance, MonthlyPayment, Interestpaid, Principalpaid, NewBalance);
这段是关于还款程序的代码
这个for 怎么写才能循环计算 OldBalance=0?