Talk:Four sides of square

From Rosetta Code
Revision as of 07:54, 18 February 2022 by Chunes (talk | contribs) (the task)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Task

In case anyone is wondering what this task actually is, it's to create a square matrix where the four edges are filled with 1, while the interior is filled with 0. For example, for size = 5,

   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

--Chunes (talk) 07:54, 18 February 2022 (UTC)