Mosaic matrix: Difference between revisions

Content added Content deleted
m (→‎{{header|Wren}}: Changed to Wren S/H)
(Added Easylang)
 
Line 601: Line 601:
[1 0 1 0 1 0 1 0 1 0]
[1 0 1 0 1 0 1 0 1 0]
[0 1 0 1 0 1 0 1 0 1]
[0 1 0 1 0 1 0 1 0 1]
</pre>

=={{header|EasyLang}}==
{{trans|Nim}}
<syntaxhighlight>
proc mosaic side . .
start = 1
for i to side
c = start
for j to side
write c & " "
c = 1 - c
.
print ""
start = 1 - start
.
.
mosaic 6
</syntaxhighlight>
{{out}}
<pre>
1 0 1 0 1 0
0 1 0 1 0 1
1 0 1 0 1 0
0 1 0 1 0 1
1 0 1 0 1 0
0 1 0 1 0 1
</pre>
</pre>