diff --git a/README.md b/README.md index b103466139..c7834a65d0 100644 --- a/README.md +++ b/README.md @@ -4,13 +4,12 @@ A calculator that calculates simple interest given principal, annual rate of interest and time period in years. -``` -Input: - p, principal amount - t, time period in years - r, annual rate of interest -Output - simple interest = p*t*r -``` +p = float(input("Ingrese el monto principal: ")) +t = float(input("Ingrese el periodo de tiempo en años: ")) +r = float(input("Ingrese la tasa de interes anual (%): ")) + +simple_interest = (p * t * r) / 100 + +print(f"El interes simple es: {simple_interest}") _© 2022 XYZ, Inc._