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)
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.