KnowledgeBoat Logo

Computer Science

Write a program to obtain principal amount, rate of interest and time from user and compute simple interest.

Python

Python Data Handling

122 Likes

Answer

p = float(input("Enter principal: "))
r = float(input("Enter rate: "))
t = float(input("Enter time: "))

si = p * r * t / 100

print("Simple Interest =", si)

Output

Enter principal: 55000.75
Enter rate: 14.5
Enter time: 3
Simple Interest = 23925.32625

Answered By

65 Likes


Related Questions