DevJourney · code I wrote while learning

simple-interest.py

176 B
p = float(input("Enter the principle amount: "))
r = float(input("Enter the rate: "))
t = float(input("Enter the time: "))
si = p * r * t / 100
print("Simple interest is", si)