KnowledgeBoat Logo

Computer Science

Write a program to calculate amount payable after compound interest.

Python

Python Data Handling

35 Likes

Answer

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

amt = p * (1 + r / 100) ** t

print("Amount Payable =", amt)

Output

Enter principal: 15217.75
Enter rate: 9.2
Enter time: 3
Amount Payable = 19816.107987312007

Answered By

13 Likes


Related Questions