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