This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
loan_amount = input("Enter Loan Amount") | |
interest_rate = input("Enter Interest Percentage") | |
no_of_payments = input("Enter No. of Payments you want to make") | |
L = float(loan_amount) | |
i = float(interest_rate) | |
n = int(no_of_payments) | |
monthly_install = L*(i*(1+i)*n)/((1+i)*n-1) | |
print ("Your Monthly Installment Amount is %.2f" % monthly_install) |