Python example to find Simple Interest

P = float(input("Enter the principal amount : "))
N = float(input("Enter the number of years : "))
R = float(input("Enter the rate of interest : "))
#calculate simple interest by using this formula
SI = (P * N * R)/100
#print
print("Simple interest : {}".format(SI))

OUTPUT:

Enter the principal amount :  1000
Enter the number of years :  2
Enter the rate of interest :  5
Simple interest : 100.0 

Leave a Comment