Write a program which accept principal, rate and time from user and print the simple interest. The formula to calculate simple interest is: simple interest = principal x rate x time / 100

Source Code

principal = float(input("Enter the principal amount: "))
rate = float(input("Enter the rate of interest: "))
time = float(input("Enter the time in years: "))
simple_interest = (principal * rate * time) / 100
print("The simple interest is:", simple_interest)

Output

Enter the principal amount: 1000
Enter the rate of interest: 6.5
Enter the time in years: 2
The simple interest is: 130.0