Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- x = float(input('Please enter the intrest amount: '))
- x= x/100
- l = int(input('Please enter the loan amount: '))
- t = int(input('Please enter the term(years): '))
- e = l * x * t
- h = l + e
- o = t * 12
- i = h / o
- a = 0
- print('\nThe loan amount: %.2f .' %(l))
- print('The term(years): %d .' %(t))
- print('The intrest to be paid is %.2f .' %(e))
- print('The final amount to be paid: %.2f \n' %(h))
- print('Payment # Remaining Balance Amount Paid')
- print('-------- --------------- -----------')
- while h != 0:
- if h < 1:
- break
- else:
- a = a + 1
- print(str(a)+' %.2f %.2f '%(h, i))
- h = h - i
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement