answersLogoWhite

0


Best Answer

#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

11y ago
This answer is:
User Avatar

Add your answer:

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

Write a C program which will ask the operator to enter amount to be invested for the period of investment and the rate of interest for simple interest and compound interest calculation?

Or you could just do the same thing in a spreadsheet without having to pay commercial rates for the program to be written for you


How can you write a complete fortran program to calculate a simple interest siprt100 given principal rate and time?

Solve simple intress usin fortran


How can I calculate the expected return on an investment?

To calculate the return on an investment you will fist write down the amount of your total investment including fees and any expenses. Next, write down your loss and finally calculate the return on investment by dividing the profit by total investment. www.moneychimp.com offers a compound interest calculator for your convenience.


Write a program to calculate first?

int first= 1;


How do you write a C program to find the Simple Interest?

Reference:cprogramming-bd.com/c_page1.aspx#simpleinterest


Write a program to calculate the area of a cylinder using a function?

give an example of calculation of mathematics


How do you write a program to input radius of a circle and calculate the area or circumferences of the cirlce?

In which computer language?


What are some advantages of molecular formulae?

With a molecular formula we can calculate the molar mass and the chemical composition of a compound, also we can write chemical equations.


Write a c-program to compute compound interest after accepting the principal amount rate and time from user?

#this program to calculate princple amount using perl. print "enter the amount given;","\n"; $A=&lt;stdin&gt;; print "enter the rate of interst given;","\n"; $R=&lt;stdin&gt;; print "enter the no of years given;","\n"; $Y=&lt;stdin&gt;; $o=1+$R; $e=$o**$Y; $t=1/$e; $f=1-$t; $p= $A*$f; print "princple amount $p";


What is the compound subject and compound predicate in Michelle and Diego wanted to write poems?

Compound subject: Michelle and Diego Compound predicate: wanted to write poems


How do you write an algorithm to calculate simple interest?

Not a very complicated algorithm - all you need to do is to multiply (capital) x (interest rate) x (number of time periods). If the interest rate is expressed in percent, you also need to divide by 100 at some point.


An essay about your interest in science?

Your interest or our interest. Decide!! If ur then write it on your own and if our.... Still write it on your own!! Ha!! Ha!! Kidding. but plz write it on your own!