# Simple Interest 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: 5
Enter the time in years: 3
The simple interest is: 150.0