Write a python program to: Find simple interest if time is more than 10 years interest rate is 8% otherwise it is 12% per annum? Display given number is multiple of 3 or not?
Answers
Answered by
2
def simple_interest(p,t,r):
print('The principal is', p)
print('The time period is', t)
print('The rate of interest is',r)
si = (p * t * r)/100
print('The Simple Interest is', si)
return si
# Driver code
simple_interest(8, 6, 8)
#CODE BY RockstarPratheek
Answered by
17
p = float(input("Enter the principal amount: "))
t = float(input("Enter the time period [in years]: "))
if t > 10:
print("Your rate of interest is 8%.")
si = (p*0.08*t)/100
print(si, "is your Simple Interest.")
else:
print("Your rate of interest is 12%.")
si = (p*0.12*t)/100
print(si, "is your Simple Interest.")
print()
print("***ADITIONAL INFORMATION***")
if si%3 == 0:
print("Your interest is divisible by 3. :)")
Equestriadash:
Thanks for the Brainliest! ^_^"
Similar questions