- """Program to calculate simple interest """
- p=int(input("Enter principal amount:")) #taking input
- t=int(input("Enter time period (in years) :"))
- r=float(input("Enter rate of interest:"))
- simpleInterest=(p*t*r)/100 #formula used
- print("Simple interest is:",simpleInterest)
- OUTPUT :
- Enter principal amount:1000
- Enter time period (in years) :5
- Enter rate of interest:25
- Simple interest is: 1250.0
Simple Interest in python
Please wait 0 seconds...
Scroll Down and click on Go to Link for destination
Congrats! Link is Generated