var matrix = [ [2, 1, 4], [1, 5, 8], [6, 3, 1] ]; var keyword; var found = 0; write("Search for number: "); keyword = read(); for (var i=0; i<matrix.length; i++) { for (var j=0; j<matrix[i].length; j++) { if (matrix[i][j] == keyword) { found++; } } } if (found > 0) { write("'" + keyword + "' is found " + found + " times."); } else { write("'" + keyword + "' is not found."); }
(
)
{
}
[
]
"
;
=
+
-
*
!
/
%
&
|