Program to find the simple interest based upon number of years. If number of years is more than 12 rate of interest is 10 otherwise 15.
Answers
Answered by
3
Explanation:
principle=float(input("Enter the principle amount:"))
time=int(input("Enter the time(years):"))
rate=float(input("Enter the rate:"))
simple_interest=(principle*time*rate)/100
print("The simple interest is:",simple_interest)
Similar questions