Identity matrix: Difference between revisions

Content deleted Content added
Hout (talk | contribs)
→‎{{header|Haskell}}: Rearranged slightly to remove redundant brackets
Line 985: Line 985:


=={{header|Elena}}==
=={{header|Elena}}==
ELENA 3.2 :
ELENA 3.4 :
<lang elena>import extensions.
<lang elena>import extensions.
import system'routines.
import system'routines.
import system'collections.
import system'collections.
program =
public program
[
[
var n := console write:"Enter the matrix size:"; readLine; toInt.
var n := console write:"Enter the matrix size:"; readLine; toInt.
Line 998: Line 998:
identity forEach
identity forEach
(:row) [ console printLine:row ].
(:row) [ console printLine:row ]
].</lang>
]</lang>
{{out}}
{{out}}
<pre>
<pre>