// Exercise 08.02 - for-loop // // Aim: Use the for-loop to iterate over the elements of an array. // //* Use the for-loop to iterate over the array "numbers" and replace //* each element with its square. // Note that the first index of an array is zero and the size of // the array numbers can be obtained with numbers.length "\\Clear"; numbers = newArray(1,2,3,4,5,6,7,8,9,10); // Your code starts after this line for (i=0; i