Ethiopian multiplication: Difference between revisions

→‎{{header|UNIX Shell}}: Switched a not-and with a true-or.
(→‎{{header|UNIX Shell}}: Retrieved formerly-Bash example.)
(→‎{{header|UNIX Shell}}: Switched a not-and with a true-or.)
Line 2,157:
while [ $plier -gt 0 ]
do
! is_even $plier &&|| (( result += plicand ))
plier=$( halve $plier )
plicand=$( double $plicand )