1 2 3 4 5 6 7 8 9 10 11 |
#! /bin/bash read n1; if test -n "$n1"; then if test $(($n1%101)) -eq 0; then echo divisible; else echo no divisible; fi else echo Introduce un numero; fi |
1 2 3 4 5 6 7 8 9 10 11 |
#! /bin/bash read n1; if test -n "$n1"; then if test $(($n1%101)) -eq 0; then echo divisible; else echo no divisible; fi else echo Introduce un numero; fi |