Program to enter principal, rate & time % print the SI.

Program to enter principal, rate & time % print the SI.
  #include <iostream>
using namespace std;
int main(){
       int t, r, p;
       cout << "Enter principal" << endl;
       cin >> p;
       cout << "Enter rate" << endl;
       cin >> r;
       cout << "enter time" << endl;
       cin >> t;

       p = (p*r*t) / 100;
       cout << "Simple intrest is " << p << endl;



       system("pause");
       return 0;

}

Comments