C++ Program to Calculate Simple Interest (SI)

C++ Program to Calculate Simple Interest (SI)

How can we find the Simple Interest? We can do it by applying the following formula, Simple Interest(SI) = (Principal Amount * Rate of Interest * Number of years) / 100.

Simple Interest by C++ :



#include <iostream>
using namespace std;

int main() 
{
    float p, t, r, si;
    
    cout << "Please Enter the Principal Amount : ";
    cin >> p;
    cout << "Please Enter the Rate Of Interest : ";
    cin >> r;
    cout << "Please Enter Time period in Years : ";
    cin >> t;

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

    cout << "Simple Interest is : " << si;
    
    return 0;
}

Output :