Python Program to calculate Simple Interest


Calculate Simple Interest

In [1]:
principal = int(input("Enter the principal amount : "))
time = int(input("Enter the time period : "))
rate = int(input("Enter the rate of interest : "))

simple_interest = (principal*time*rate)/100

print("Simple Interest =", simple_interest)
Enter the principal amount : 2000
Enter the time period : 2
Enter the rate of interest : 10
Simple Interest = 400.0

In this program, we will ask the user to input principal, rate and time. After that, use the simple interest formula, i.e. (principal*rate*time)/100.