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