Four sides of square: Difference between revisions

imported>Maxima enthusiast
No edit summary
(→‎BQN: add)
Line 495:
1 1 1 1 1 1 1
</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}}==
Line 519 ⟶ 532:
return 0;
}</syntaxhighlight>
 
{{out}}
<pre>
559

edits