SHARE
TWEET

Untitled

a guest Dec 9th, 2018 54 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. import os
  2. def costofloan():
  3.     os.system('cls')
  4.     cost = float(input("\\\\ "))
  5.     years = float(input("\\\"))
  6.     oft = int(input("\\\\ "))
  7.     howmany = oft * years
  8.     Fapr = float(input("\\\) "))
  9.     Rapr = Fapr/100
  10.     payEM = float(input(\\\"))
  11.     count = 0
  12.     left = 0
  13.     intrest = cost*Rapr
  14.  
  15.     while count < howmany:
  16.         left = cost - payEM
  17.         intrest += left * Rapr
  18.         count += 1
  19.  
  20.         end = intrest + cost
  21.  
  22.     os.system('cls')
  23.     print()
  24.     print("\\\\\\\\\ " + str(end))
  25.     print()
  26.     print("Or (\\\\\\\\\\\\ " + str(intrest) + ") + " "(\\\\\\\\ " + str(cost) + ") = (\\\\\ " + str(end) + ")")
  27.     input()
  28. costofloan()
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top