object does not match function

//computing principal balance after pymt made
#include
#define INT 6.0f
#define TERM 60
#define MTH_RATE .005f
#define PRIN 20000
#define MTH_PYMT 386.66

int main (void)
{

int t;
float p1, p2, p3;

printf("Please enter number of months paid: ");
scanf("%d", &t);

p1 = PRIN * (1 + MTH_RATE) - (PRIN / MTH_RATE)((1 + MTH_RATE) - 1);
p2 = p1 * (1 + MTH_RATE) - (p1 / MTH_RATE)((1 + MTH_RATE) - 1);
p3 = p2 * (1 + MTH_RATE) - (p2 / MTH_RATE)((1 + MTH_RATE) - 1);

printf("Principal balance after 1 month: %.2f
", p1);
printf("Principal balance after 2 months: %.2f
", p2);
printf("Principal balance after 3 months: %.2f
", p3);

return 0;

}

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories