Ethiopian multiplication: Difference between revisions

m
imported>Maxima enthusiast
No edit summary
Line 2,489:
 
=={{header|EasyLang}}==
func mult x y .
{{trans|Microsoft Small Basic}}
x =while x div>= 21
<syntaxhighlight lang="text">
if (x + 1) if x mod 2 =<> 0
x = 17
tot += y
y = 34
y = 2 * y.
tot = 0
while x >= 1x div 2
write x & "\t" y *= 2
.
if (x + 1) mod 2 = 0
return tot += y
print y
else
print ""
.
x = x div 2
y = 2 * y
.
print "=\t"mult &17 tot34
</syntaxhighlight>
 
2,049

edits