RosettaCodeData/Task/Even-or-odd/UNIX-Shell/even-or-odd.sh

5 lines
64 B
Bash

iseven() {
[[ $(($1%2)) -eq 0 ]] && return 0
return 1
}