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

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.