var n; var arr; do { write("Enter arr length: "); n = read(); } while (n<=0 || isNaN(n)); arr = array(n); for (var i=0; i<arr.length; i++) { write("Enter arr[" + i + "]: "); arr[i] = read(); } write("\narr contain " + arr.length + " elements.\n"); for (var i=0; i<arr.length; i++) { write("arr[" + i + "] = " + arr[i] + "\n"); }
(
)
{
}
[
]
"
;
=
+
-
*
!
/
%
&
|