Computer Science, asked by khushiraval7929, 1 year ago

C++ program for compound interest and simple interest

Answers

Answered by emmanuelpi007
0

#include<iostream>

#include<math.h>

using namespace std;

int main()

{

   float p,r,t,ci,si;

   cout<<"Enter Principle, Rate and Time : ";

   cin>>p>>r>>t;

   si=(p*r*t)/100;

   ci=p*pow((1+r/100),t);

   cout<<"\nSimple Interest : "<<si;

   cout<<"\nCompound Interest : "<<ci;

   return 0;

}

Answered by BrainlysCrazyBoy
0

#include<stdio.h>

#include<math.h>

int main()

{

float R,S,T,SI;

SI=(P*R*T)/100;

printf("\n\n Simple Interest is : %f,SI);

return (0);

}

________________________________

Output

SI= ((P*R*T)/100

________________________________

Hope This Helps You

Similar questions