Jump to content

Ethiopian multiplication: Difference between revisions

m
(Added Fōrmulæ solution)
Line 1,788:
while x >= 1
write x
write char_chr 9"\t"
if (x + 1) mod 2 = 0
tot += y
Line 1,798:
y = 2 * y
.
write "=\t"
write char_chr 9
print tot</lang>
 
2,078

edits

Cookies help us deliver our services. By using our services, you agree to our use of cookies.