var arr = array(5); var temp; for (var i=0; i<arr.length; i++) { write("Enter arr[" + i + "]: "); arr[i] = read(); } for (var i=0; i<arr.length-1; i++) { for (var j=i+1; j<arr.length; j++) { if (arr[i] > arr[j]) { temp = arr[i]; arr[i] = arr[j]; arr[j] = temp; } } } write("\nAfter sorting\n"); for (var i=0; i<arr.length; i++) { write("arr[" + i + "] = " + arr[i] + "\n"); }
(
)
{
}
[
]
"
;
=
+
-
*
!
/
%
&
|