Execute Computer/Zero: Difference between revisions

Content added Content deleted
m (→‎{{header|Raku}}: Add a Raku example)
m (→‎{{header|Raku}}: Actually exercise the interpreter)
Line 2,032: Line 2,032:
}
}
$acc
$acc
}
}</syntaxhighlight>

say "2 + 2 = " ~ execute 35,100,224,2,2;
say "7 x 8 = " ~ execute 44,106,76,43,141,75,168,192,44,224,8,7,0,1;
say "Fibonacci: " ~
execute 46,79,109,78,47,77,48,145,171,80,192,46,224,1,1,0,8,1;
say "Linked list: " ~
execute 45,111,69,112,71,0,78,0,171,79,192,46,
224,32,0,28,1,0,0,0,6,0,2,26,5,20,3,30,1,22,4,24;
say "Prisoners dilemma: " ~
execute 0,0,224,0,35,157,178,35,93,174,33,127,65,194,
32,127,64,194,35,93,33,126,99,65,32,126,99,64,194,0,1,3;</syntaxhighlight>
{{out}}
{{out}}
<pre>2 + 2 = 4
<pre>2 + 2 = 4