Program to find simple Interest and compound Interest
#include<iostream>
using namespace std;
int main()
{
int p, r, t;
float si, ci;
cout << "Enter value for P R T" << endl;
cin >> p >>r >> t;
si = p*r*t/100;
ci = p*(1+r/100)^t;
cout << "SIMPLE INTREST = " <<si <<"\n" << "COMPOUND INTERESRT= " << ci;
return 0;
}
#include<iostream>
using namespace std;
int main()
{
int p, r, t;
float si, ci;
cout << "Enter value for P R T" << endl;
cin >> p >>r >> t;
si = p*r*t/100;
ci = p*(1+r/100)^t;
cout << "SIMPLE INTREST = " <<si <<"\n" << "COMPOUND INTERESRT= " << ci;
return 0;
}