Question

any help please? #include <stdio.h> #include <math.h> int main()    { double borrow; double interest; double...

any help please?

#include <stdio.h>

#include <math.h>

int main()

  

{

double borrow;

double interest;

double monthes;

double payment;

  

  

borrow= 15.090;

interest= .00583;

monthes=48;

  

payment= borrow*(interset*pow(interest,48)+1)/(pow(interest,48)+1* - 1);

return 0;

}

I'm trying to calculate the monthly payment but nothing shows up!

0 0
Add a comment Improve this question Transcribed image text
Answer #1

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

int main()
{
   double borrow;
   double interest;
   double monthes;
   double payment;

   borrow= 15.090;
   interest= .00583;
   monthes=48;

   payment = borrow*(interest*pow(1+interest,monthes))/(pow(1+interest,monthes) - 1);   // this is the formula for calculating the payment
   printf("Payment: %.2f\n", payment);   // use printf to display the result to screen
   return 0;
}

CS. C:Windows system321cmd.exe Payment: 0.36 Press any key to continue . - .

Add a comment
Know the answer?
Add Answer to:
any help please? #include <stdio.h> #include <math.h> int main()    { double borrow; double interest; double...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT