Geography, asked by kritish89, 1 month ago

Write a C++ program to input the principal amount (p), rate of interest(r) and time in years (t). calculate and display the simple interest S as PRT/100

Answers

Answered by arpitag1974
1

Answer:

Explanation:

include<iostream>

using namespace std;

int main()

{

 // declare variables

 float p, t, r, interest;

 // take input from end-user

 cout << "Enter principal amount, time and rate:";

 cin >> p >> t >> r;

 // calculate interest

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

// display result

 cout << "Interest = " << interest << endl;

 return 0;

}

OUTPUT=

Enter principal amount, time and rate: 1000 10.5 11.9

Interest = 1249.5

Similar questions