Program in c++ for finding compound interest using while loop
Answers
Answered by
0
Answer:
Explanation:
#include<iostream>
#include<math.h>
using namespace std;
int main()
{
float p,r,t,ci;
cout<<"Enter Principle, Rate and Time:\n";
cin>>p>>r>>t;
ci=p*pow((1+r/100),t);
cout<<"\nCompound Interest = "<<ci;
return 0;
}
Similar questions