C++ Program to find Compound Interest

#include<iostream.h>
#include<conio.h>
#include<math.h>
void main()
{
float p,r,t,ci;
clrscr();cout<<“Enter Principle,Rate and Time “;
cin>>p>>r>>t;
ci=p*pow((1+r/100),t);cout<<“n”<<“Compound Interest = “<<ci<<“%”;
getch();
}

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

    Reply

Leave a Reply

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