var matrix = array(3, 3); var sum; for (var i=0; i<matrix.length; i++) { for (var j=0; j<matrix[i].length; j++) { write("Enter matrix[" + i + "][" + j + "]: "); matrix[i][j] = read(); } write("\n"); } for (var j=0; j<matrix[0].length; j++) { sum = 0; for (var i=0; i<matrix.length; i++) { sum = sum + matrix[i][j]; } write("The sum of elements in column " + j + " = " + sum + "\n"); }
(
)
{
}
[
]
"
;
=
+
-
*
!
/
%
&
|