Four sides of square: Difference between revisions

Content added Content deleted
imported>Maxima enthusiast
No edit summary
(→‎BQN: add)
Line 495: Line 495:
1 1 1 1 1 1 1
1 1 1 1 1 1 1
</pre>
</pre>

=={{header|BQN}}==
<syntaxhighlight lang="bqn">Square ← ∨⌜˜1⌽↑⟜1‿1

Square 5</syntaxhighlight>
{{out}}
<pre>┌─
╵ 1 1 1 1 1
1 0 0 0 1
1 0 0 0 1
1 0 0 0 1
1 1 1 1 1
┘</pre>


=={{header|C}}==
=={{header|C}}==
Line 519: Line 532:
return 0;
return 0;
}</syntaxhighlight>
}</syntaxhighlight>

{{out}}
{{out}}
<pre>
<pre>