codemaniacstudio

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

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

Exit mobile version