Explanation
Simple Interest is the convenient method used in banking and economic sectors to calculate the interest charges on loans.It gets estimated day to day with the help of some mathematical terms.
Formula
Simple Interest = (P × R × T)/100
where P = Principal Amount, R = Rate per Annum, T = Time (years)
Algorithm
- Define Principal, Interest and Time of loans.
- Apply in the formula.
- Print the Simple Interest.
Complexity
O(1)
Simple Interest = (P × R × T) / 100
Input:
P = 34000, R = 30,T = 5
where P = Principal Amount, R = Rate per Annum, T = Time (years)
Output:
Simple Interest = 51000.000
Python
Output:
C
Output:
JAVA
Output:
C#
Output:
PHP
Output: