Program to find the simple interest from given principle, rate of interest & time
Simple Interest = P x T x R ÷ 100, where P = Principal, R = Rate of Interest and T = Time Period of the Loan/Deposit in years
Explanation:
Read Principle value.
Read Rate of Interest.
Read Time Period.
Substitute the values in the below formula
simple interest = P x T x R ÷ 100.
SIMPLE INTEREST PROGRAM IN PYTHON
principle = float(input("principle "))
rate = float(input("rate of interest "))
time = int(input("time "))
pi = 3.1423
#simple interest formula
simple_interest = (principle*rate*time) / 100
print("simple interest is ",simple_interest)
Output
principle 500.0
rate of interest 5.0
time 2
simple interest is 50.0
Comments
Post a Comment
Type Your Comments !
Please do not enter any spam link in the comment box.