Ethiopian multiplication: Difference between revisions
m
→{{header|Craft Basic}}
Basicgames (talk | contribs) |
Basicgames (talk | contribs) |
||
Line 1,997:
do
if x
break
if s = 1 then▼
print x▼
▲ endif
if s = 0 then▼
let s = 1▼
▲ endif
let
let e = a % 2▼
let e = 1 - e▼
print x, " ", y▼
▲ endif
let a = x▼
let a = int: a / 2▼
let x = a▼
▲ let a = 2 * a
let y = a▼
endif
loop x >= 1
Line 2,037 ⟶ 2,038:
print t
end</syntaxhighlight>▼
▲</syntaxhighlight>
=={{header|D}}==
|