Computer Science, asked by dishuss1622, 10 months ago

Program in c++ for finding compound interest using while loop

Answers

Answered by snolemukhiya
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
Math, 5 months ago