8 lines
368 B
Python
8 lines
368 B
Python
# Question: Write a Python program to compute simple interest for a given principal amount, time, and rate of interest.
|
|
|
|
amount = float(input("Enter the principal amount: "))
|
|
time = float(input("Enter the time in years: "))
|
|
rate = float(input("Enter the rate of interest: "))
|
|
|
|
simple_interest = (amount * time * rate) / 100
|
|
print(f"Simple Interest: {simple_interest}") |