Python program To calculate simple intrest,if the time is less than 5 years then the rate of intrest will be 6% otherwise it will be 6.5%.
Answers
Answered by
7
Answer:
print("------------------------------Interest finder-------------------------------------")
principal = float(input("Please enter the principal: "))
time = float(input("Please enter the principal: "))
if time < 5:
rate = 6
else:
rate = 6.5
simpleinterest = (principal*time*rate)/100
print("The simple interest for the given principal and time is", simpleinterest)
The letter written in bold is the code you can just copy it and post it in your text editor and save and just run. It's gonna work!!
Please give your precious feedback as ratings and appreciate my efforts by just a Thank you!!
And don't forget to mark my answers as the brainliest!!
Thank you!!
Similar questions
CBSE BOARD X,
3 months ago
Physics,
7 months ago
English,
7 months ago
Chemistry,
10 months ago
Economy,
10 months ago