#write a program that calculates monthly loan payment #input: original loan amount, interest (integer) #and the number years the loan is taken for. 100100 #THE INTEREST WILL BE APPLIED ON ORIGINAL LOAN AMOUNT #UPFRONT #loan = 100 dollars, interest = 10% for the whole period #i took it for 10 years #total amount you own =loan+loan*interest/100 loan=float(input("enter loan amount ")) interest = int(input("enter interest ")) loan_term = int(input("enter number of year of the loan ")) total_own=loan+loan*interest/100 monthly_payment = total_own/(loan_term*12) print("monthly payment is ", format(monthly_payment, '.2f'))