Ethiopian multiplication: Difference between revisions
m
→{{header|EasyLang}}
imported>Maxima enthusiast No edit summary |
|||
Line 2,489:
=={{header|EasyLang}}==
func mult x y .
tot += y
.▼
▲ if (x + 1) mod 2 = 0
return tot
▲ .
▲ x = x div 2
▲ y = 2 * y
.
print
</syntaxhighlight>
|