p = int(input(‘Enter principal : ‘))

r = int(input(‘Enter annual rate of interest : ‘))/1200

n = int(input(‘Enter tenure of loan : ‘))

print(‘EMI is’, p*r*pow((1+r), n)/(pow((1+r), n)-1))

r = int(input(‘Enter annual rate of interest : ‘))/1200

n = int(input(‘Enter tenure of loan : ‘))

print(‘EMI is’, p*r*pow((1+r), n)/(pow((1+r), n)-1))