Computer Science, asked by TeeshaAhuja, 9 months ago

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​

Answers

Answered by devashishkasana
73

Explanation:

P=int(input("enter the principal"))

R=int(input("enter rate of interest"))

T=int(input("enter time period"))

SI=(P*R*T)/100

TOTAL AMT=P+SI

Print("payable amount is",TOTAL AMT)

Answered by AskewTronics
10

Below are the program for the above question:

Explanation:

p=float(input("Enter the value of principal: "))# It is used to take the principal value from the user.

r=float(input("Enter the value of rate of interest"))# It is used to take the rate of interest value from the user.

t=float(input("Enter the value of time"))# It is used to take the time value from the user.

print("The payable amount is "+str(((p*r*t)/ 100)+p)) # it is used to calculate the payable amount and print it.

Output:

  • If the user input 5,2 and 2 then the output is 5.2.

Code Explanation:

  • The above program is in python language which takes the input for the principal, rate of interest and for time.
  • Then the payable amount will be calculated with the help of the above formula.

Learn More:

  • Python program : https://brainly.in/question/5558161
Similar questions