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.

SOLUTION....



# Input values
P = float(input("Enter Principal amount (P): "))
T = float(input("Enter Time (T in years): "))
R = float(input("Enter Rate of Interest (R): "))

# Formula for Simple Interest
SI = (P * T * R) / 100

# Output
print(f"Simple Interest = {SI:.2f}")

OUTPUT

Exit mobile version