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
Write a program to calculate the area of an equilateral triangle. (area = (√3 / 4) * side * side).
Write a program to input the radius of a sphere and calculate its volume (V = 4/3πr3)
Write a program to compute (a + b)3 using the formula a3 + b3 + 3a2b + 3ab2
Write a program to calculate amount payable after simple interest.