#include <stdio.h>
#include <math.h>

int main(void)

{

double r, a, p, x, powr, n;

printf("How long is the loan in years?\n");

scanf("%d", &n);

n = n / 12;

printf("How much did you borrow?\n");

scanf("%lf", &a);

printf("What is it's interest?\n");

scanf("%lf", &r);

x = r + 1;

powr = pow((double) x , (double) n);

p = (r * powr ) / ( powr - 1 );

printf("your monthly payment is : %f", p);

return 0;

}

see any errors?

2. Code:
```#include <stdio.h>
#include <math.h>

int main(void)
{
double r, a, p, x, powr, n;

printf("How long is the loan in years?\n");
scanf("%d", &n);    /* n is a double not an integer !! So don't use %d */

n = n / 12;

printf("How much did you borrow?\n");

scanf("%lf", &a);

printf("What is its interest?\n");

scanf("%lf", &r);

x = r + 1;

powr = pow((double) x , (double) n);

p = (r * powr ) / ( powr - 1 );

printf("your monthly payment is : %f", p);

return 0;

}```

3. This is essentially the same problem raised here:

don't have any clue how to do this

From now on, newcstudent, please use code tags - and read the forum guidelines, too.