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


You can understand by Watching video :-



Answer :-

principal = int(input("Enter principal amount = "))
rate = int(input("Enter rate = "))
time = int(input("Enter time = "))
si = principal * rate * time / 100
print("Simple interest = ",si)

Output :-

Enter principal amount = 1600
Enter rate = 5
Enter time = 2
Simple interest =  160.0

>>> 

Enter principal amount = 156315
Enter rate = 2
Enter time = 56
Simple interest =  175072.8

>>>

Post a Comment

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

Previous Post Next Post