Q. Write a program to calculate EMI as per formula:

E=PR (1+ R)n / ((1+R)n - 1)

where E = EMI  ; P = Principal Loan Amount ; R= Rate of interest per month i.e., (Annual rate of interest/100/12); n = tenure of loan repayment in months.

Get the input from user (e.g., calculate EMI for loan amount of 2,00,000 at 10% p.a. rate of interest (10/100/12) for a period of 2 years i.e., 24 months.


Answer = 




p = float(input("Enter Principal Loan Amount  :-"))
r = float(input("Enter Rate of interest per month :-"))
n = float(input("Enter tenure of loan repayment in months :-"))
 
e = ( p*r* ( (1+r)**n) ) / ( ((1+r)**n)-1 )

print("EMI = ", e)

#Now you can put above value of p , r , n 



6 Comments

You can help us by Clicking on ads. ^_^
Please do not send spam comment : )

Post a Comment

You can help us by Clicking on ads. ^_^
Please do not send spam comment : )

Previous Post Next Post