Ethiopian multiplication: Difference between revisions

Content added Content deleted
m (→‎{{header|Bash}}: logical operations replacing "modulo loss workround")
m (→‎{{header|Bash}}: stupid typo)
Line 269: Line 269:
is_even() {
is_even() {
local n=$1
local n=$1
[ $(( n & 1 )) -eq $n ]
[ $(( n & 1 )) -eq 0 ]
}
}