for (int i=1; i<=n; i=i+1)
{
k=k_0*pow(q,n)-v*(pow(q,n)-1)/(q-1);
cout<<"k="<<k<<endl;}
If this is operator for whereas n is typed months, k_0 is the taken money, q(q=1+p/100 (p - interest rate)) is interest factor and v is the payment in each month in order to repay the credit What changes I should make if I want to see from the first to the typed month(including him) in column the money that remained for the final repayment of it? If you want to see the whole program, write if it is necessary!