Calculate simple interest
(P * R * T) / 100
Where,
- P – Principle
- R – Rate of interest
- T – Time in years
Example:
Input:
p = 250000
r = 36
t = 1
# formula
si = (p*r*t)/100
print(si)
Output:
90000
Python program to find simple interest
# Python program to find simple interest
p = float(input("Enter the principle amount : "))
r = float(input("Enter the rate of interest : "))
t = float(input("Enter the time in the years: "))
# calculating simple interest
si = (p*r*t)/100
# printing the values
print("Principle amount: ", p)
print("Interest rate : ", r)
print("Time in years : ", t)
print("Simple Interest : ", si)
Output