Four sides of square: Difference between revisions

Content added Content deleted
(→‎K: add)
(Added Easylang)
Line 656: Line 656:
1 0 0 0 0 0 1
1 0 0 0 0 0 1
1 1 1 1 1 1 1
1 1 1 1 1 1 1
</pre>

=={{header|EasyLang}}==
<syntaxhighlight>
proc holmat n . .
for i to n
for j to n
if i = 1 or i = n or j = 1 or j = n
write 1
else
write 0
.
.
print ""
.
.
holmat 10
</syntaxhighlight>
{{out}}
<pre>
1111111111
1000000001
1000000001
1000000001
1000000001
1000000001
1000000001
1000000001
1000000001
1111111111
</pre>
</pre>