Identity matrix: Difference between revisions
Content deleted Content added
→{{header|Haskell}}: Rearranged slightly to remove redundant brackets |
|||
Line 985: | Line 985: | ||
=={{header|Elena}}== |
=={{header|Elena}}== |
||
ELENA 3. |
ELENA 3.4 : |
||
<lang elena>import extensions. |
<lang elena>import extensions. |
||
import system'routines. |
import system'routines. |
||
import system'collections. |
import system'collections. |
||
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> |
||
{{out}} |
{{out}} |
||
<pre> |
<pre> |