Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

readme's arreglado #72

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion exercises/025-print-formula/README.es.md
Original file line number Diff line number Diff line change
Expand Up @@ -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`:*
Expand Down
2 changes: 1 addition & 1 deletion exercises/025-print-formula/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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`:*
Expand Down
5 changes: 3 additions & 2 deletions exercises/025-print-formula/solution.hide.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)