===========================================================================
CODING
#include<iostream.h>
#include<conio.h>
#include<math.h>
void main()
{
clrscr();
double P,R,T,CI;
cout<<"\n Enter Principal amount:- ";
cin>>P;
cout<<"\n Enter Rate of interest:- ";
cin>>R;
cout<<"\n Enter Time period:- ";
cin>>T;
CI=pow(P*(1+R/100),T);
cout<<"\n The Compound Interest for "<<P<<"rs. for "<<T<<"years at rate of interest "<<R<<"%p.a. is "<<CI;
getch();
}
CODING
#include<iostream.h>
#include<conio.h>
#include<math.h>
void main()
{
clrscr();
double P,R,T,CI;
cout<<"\n Enter Principal amount:- ";
cin>>P;
cout<<"\n Enter Rate of interest:- ";
cin>>R;
cout<<"\n Enter Time period:- ";
cin>>T;
CI=pow(P*(1+R/100),T);
cout<<"\n The Compound Interest for "<<P<<"rs. for "<<T<<"years at rate of interest "<<R<<"%p.a. is "<<CI;
getch();
}
===========================================================================
OUTPUT
No comments:
Post a Comment