#include<iostream>#include<math.h>#include<conio.h>using namespace std;int main(){double p, t, r, A, CI;cout<<"Enter Principal Amount, Time and Rate\n";cin>>p>>t>>r;A=p*pow((1+(r/100)),t);CI=A-p;cout<<"Compound Interest : "<<CI;getch();return 0;}
No comments:
Post a Comment