In this python basic program, we will calculate simple interests using the formula P+(P/r)*t.
Steps to solve the program
- Take the principal amount, rate of interest, and number of years as input.
- Calculate the simple interest using the formula P+(P/r)*t, where P is the principal amount, r is the rate of interest, t is the number of years.
- Print the output.
p = 1000
r = 10
t = 2
amount = p+(p/r)*t
print("Amount payable: ",amount)
Output :
Amount payable: 1200.0