maynul67

interest calculator

Jul 12th, 2021
668
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. def simple_interest(p,r,t):
  2.     interest = p*r*t/100
  3.     return interest
  4. p = float(input("enter principle: "))
  5. r = float(input("enter rate: "))
  6. t = int(input("enter time in year: "))
  7. a = simple_interest(p,r,t)
  8. print(a)
RAW Paste Data