Computer Science

Write a program to calculate amount payable after compound interest.

Python

Python Data Handling

39 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

14 Likes


Related Questions