Q. Write a Python program to calculate the amount payable if money has been lent on simple interest.

Principal or money lent = P, Rate = R% per annum and Time = T years. Then Simple Interest (SI) = (P x R x T)/ 100.


Amount payable = Principal + SI.


P, R and T are given as input to the program.


Answer:-


P = float(input("Enter Principal"))
R = float(input("Enter Rate of interest"))
T = float(input("Enter Time"))
SI = (P * R * T)/100
A = P + SI
print("Amount to be payable is :- ", A)


Output :-


Enter Principal :-25000

Enter Rate of interest :-5

Enter Time :-5

Amount to be payable is :- 31250.0

>>>


2 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