answersLogoWhite

0

#include<stdio.h>

#include<conio.h>

void main();

{

float p,r,t;

float ci(float,float,float);

clrscr();

printf("\n enter principle\n");

scanf("%f",&p);

printf("\n enter rate\n");

scanf("%f",&rate");

printf("\n enter time\n");

scanf("%f",&time");

printf("\n compound interest is%f ",ci(p,r,t));

getch();

}

float ci(float a,float b,float c);

float(result);

result=p(1+r\100)^c-1);

return(result);

}

User Avatar

Wiki User

12y ago

Still curious? Ask our experts.

Chat with our AI personalities

ReneRene
Change my mind. I dare you.
Chat with Rene
TaigaTaiga
Every great hero faces trials, and you—yes, YOU—are no exception!
Chat with Taiga
RossRoss
Every question is just a happy little opportunity.
Chat with Ross

Add your answer:

Earn +20 pts
Q: Write a program to calculate compound interest?
Write your answer...
Submit
Still have questions?
magnify glass
imp