C++ Program to find Compound Interest

By | March 24, 2011
void main()
float p,r,t,ci;
clrscr();cout<<“Enter Principle,Rate and Time “;
ci=p*pow((1+r/100),t);cout<<“n”<<“Compound Interest = “<<ci<<“%”;

2 thoughts on “C++ Program to find Compound Interest

  1. Shreoshree

    well, sorry to say but ur formula is wrong…. ‘t’ is not an exponent of ‘p’…. we hav 2 take ‘p’ out side the pow function… hope u make necessary changes:)


Leave a Reply

Your email address will not be published. Required fields are marked *