var matrix = array(3, 3); var sum = 0; 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 i=0; i<matrix.length; i++) { for (var j=0; j<matrix[i].length; j++) { sum = sum + matrix[i][j]; } } write("The sum of all elements = " + sum);
(
)
{
}
[
]
"
;
=
+
-
*
!
/
%
&
|