Question: Find the errors in the given program and rewrite the correct program p = float(input(Enter the principle amount : )) r = float(input(Enter the rate
Find the errors in the given program and rewrite the correct program
p = float(input("Enter the principle amount : "))
r = float(input("Enter the rate of interest : ")
t = float(input("Enter the time in the years: "))
si == (p*r*n)/100
print("Principle amount: ", p)
print("Interest rate : ", r)
print("Time in years : ", t)
print("Simple Interest : " si)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
