diff --git a/exercises/025-print-formula/README.es.md b/exercises/025-print-formula/README.es.md index 30b86aed..f72bc385 100644 --- a/exercises/025-print-formula/README.es.md +++ b/exercises/025-print-formula/README.es.md @@ -5,7 +5,7 @@ 1. Escribe una función llamada `print_formula()`, con un parámetro que calcule e imprima el valor según la fórmula dada. ```text -Q = Square root of (2 * c * d) / h +Q = Square root of (2 * c * d / h) ``` *A continuación encontrarás los valores fijos de `c` y `h`:* diff --git a/exercises/025-print-formula/README.md b/exercises/025-print-formula/README.md index cf0cbf95..7295f08e 100644 --- a/exercises/025-print-formula/README.md +++ b/exercises/025-print-formula/README.md @@ -5,7 +5,7 @@ 1. Write a function `print_formula()`, with one parameter that calculates and prints the value according to the given formula: ```text -Q = Square root of (2 * c * d) / h +Q = Square root of (2 * c * d / h) ``` *Following are the fixed values of `c` and `h`:* diff --git a/exercises/025-print-formula/solution.hide.py b/exercises/025-print-formula/solution.hide.py index 3ddcff9c..1ba2d747 100644 --- a/exercises/025-print-formula/solution.hide.py +++ b/exercises/025-print-formula/solution.hide.py @@ -2,6 +2,7 @@ import math def print_formula(d): - return round(math.sqrt(2 * 50 * d / 30)) + result = round(math.sqrt(2 * 50 * d / 30)) + print(result) -print(print_formula(150)) +print_formula(150) \ No newline at end of file