📜  单利的C程序

📅  最后修改于: 2021-05-28 03:21:50             🧑  作者: Mango

例子:

EXAMPLE1:
Input : P = 10000
        R = 5
        T = 5
Output :2500
We need to find simple interest on 
Rs. 10,000 at the rate of 5% for 5 
units of time.

EXAMPLE2:
Input : P = 3000
        R = 7
        T = 1
Output :210
C++
// CPP program to find simple interest for
// given principal amount, time and rate of
// interest.
#include
using namespace std;
int main()
{
    // We can change values here for
    // different inputs
    float P = 1, R = 1, T = 1;
  
    /* Calculate simple interest */
    float SI = (P * T * R) / 100;
  
    /* Print the resultant value of SI */
    cout << "Simple Interest = " << SI;
  
    return 0;
}
Please refer complete article on Program to find simple interest for more details!Want to learn from the best curated videos and practice problems, check out the C Foundation Course for Basic to Advanced C.