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

Update 2019-01-17.md #56

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
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
10 changes: 10 additions & 0 deletions 2019-01-17.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,16 @@ sh suma 1 5
# Ejercicios avanzado: realizar un script que haga las siguientes operaciones matemáticas: suma, resta, multiplicación y división
## Solución 1
```Bash
#hacer esto en nano.
echo -n "introduzca primer numero:"
read n1
echo -n "introduzca segundo numero:"
read n2
Resultado=(expr $n1 $op $n2)
echo "$n1 $op $n2 = $Resultado"
#Luego en la pantalla principal hacer un sh de prueba1 que es como lo hemos llamado.
sh prueba1
```
op=0

if [ $op -eq 0 ]; then
Expand Down