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

4 lines
34 B
Bash

is_even() {
return $(($1 & 1))
}