Question: 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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!