Anonymous user
Ethiopian multiplication: Difference between revisions
m
→{{header|Bash}}: removed modulus from is_even to fit with the spirit of the problem
m (→{{header|Bash}}: replaced mult and div with bitwise shifts so as to fit better with the spirit of the problem) |
m (→{{header|Bash}}: removed modulus from is_even to fit with the spirit of the problem) |
||
Line 269:
is_even() {
local n=$1
[ $(double $( halve $n
}
|