Anonymous user
Ethiopian multiplication: Difference between revisions
m
→{{header|AutoHotkey}}: changed "loop" to "while"
(add AutoHotkey) |
m (→{{header|AutoHotkey}}: changed "loop" to "while") |
||
Line 68:
Ethiopian( a, b ) {
r := (isEven(a) ? 0 : b)
a := half(a)
b := double(b)
if !isEven(a)
r += b
▲ if (a = 1)
}
return r
|