Write a Python program to enter P, T, R and calculate Simple Interest.

PROGRAM

# Input principal, time and rate
P = float(input(“Enter the Principal amount (P): “))
T = float(input(“Enter the Time in years (T): “))
R = float(input(“Enter the Rate of interest (R): “))
# Calculate Simple Interest
SI = (P * T * R) / 100
# Display the result
print(f”The Simple Interest is: {SI}”)

OUTPUT

TRY THE ABOVE CODE

Leave a Reply

Your email address will not be published. Required fields are marked *

sign up!

We’ll send you the hottest deals straight to your inbox so you’re always in on the best-kept software secrets.