Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

int main ( ) { float loan = 0 . 0 ; float interest = 0 . 0 ; int years = 0 ; printf

int main(){
float loan =0.0;
float interest=0.0;
int years=0;
printf("Enter loan amount : ");
scanf("%f",&loan);
printf("=%2.f",loan);
printf("
Enter years : ");
scanf("%d",&years);
printf("Enter interset rate <5/10/15/20/25/30> : ");
scanf("%f",&interest);
if (years >0){
//printf(Interest rate=%2.f
",interset) ;
loan =1000+(1000*10/100*5);
printf("Loan plus interest =%2.f
",loan);
//printf(Interest rate =(100*10* pow(1+10,5))/(pow(1+ r, t)-1) ;
}
else
printf("%d 5
", years);
printf("program enhanced by Abel Asegid");
return 0;
} Q, is i want the code to dispay the monthly paymnt on the output please?

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Data Analysis Using SQL And Excel

Authors: Gordon S Linoff

2nd Edition

111902143X, 9781119021438

Students also viewed these Databases questions

Question

What was the first HR error to be made?

Answered: 1 week ago