Computer Science, asked by jrathorejyoti, 4 months ago

Write a program to calculate simple and compound interest in c++ ?​

Answers

Answered by ItZkeshavi93
5

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