Q. Write a program to compute simple interest and compound interest.


You can understand by Watching video :-



Answer :-

p = int(input("Enter principal amount = ")) 
r = int(input("Enter the rate = "))
t = int(input("Enter time  = "))
si = (p * r * t ) / 100
com = p * ( (1 + (r / 100 ))** t ) - p
print("Simple interest = ",si)
print("Compound interest = ",com) 

Output :-

Enter principal amount = 2500
Enter the rate = 5
Enter time  = 9
Simple interest =  1125.0
Compound interest =  1378.3205399462904

>>>

2 Comments

You can help us by Clicking on ads. ^_^
Please do not send spam comment : )

  1. good job and nice website SUIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIII

    ReplyDelete

Post a Comment

You can help us by Clicking on ads. ^_^
Please do not send spam comment : )

Previous Post Next Post