Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- numero=2
- if [ $numero -eq 1 ]; then
- echo "El número es 1"
- elif [ $numero -eq 2 ]; then
- echo "El número es 2"
- elif [ $numero -eq 3 ]; then
- echo "El número es 3"
- else
- echo "El número no es 1, 2 ni 3"
- fi
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement