Here, I fixed up your code.

Mainly, you had the variables N and K doing each other's job. So I just switched those and did some other housekeeping. I believe that this is what you wanted:

Code:

#include<iomanip.h>
#include<math.h>
main()
{
_asm finit;
int K, N = 36;
double Pmt = 165.25, I=0.09, Bal;
for (K = 1; K <= 36; K++)
{
cout << endl <<"Payment Number: "<< K << endl;
Bal = Pmt * ( 1 - pow((1 + I/12),(K - N)) ) / (I/12); //Bal k= pmt[1-(1+i)^(k-n)]/i
cout.setf(ios::floatfield, ios::showpoint);
cout.setf(ios::fixed) ;
cout << setprecision(2)
<< "Monthly Payment is: $" << Pmt <<endl
<< "Monthly Interest Rate is: " << I/12 <<endl
<< "Total Number of Payments is: "<< N <<endl
<< "Balance is: $" << Bal <<endl;
}
return 0;
}

Good luck