Views
No views yet
# Input annual interest rate
rate = float(input("Enter the annual interest rate (in %): "))
# Input time period in years
time = float(input("Enter the time period (in years): "))
# Calculate simple interest
interest = calculate_simple_interest(principal, rate, time)
# Print the result
print(f"The simple interest is: {interest}")