...Quiz 050 (October 27): Search through an array

// given the following code,
// write code to report the
// largest value in the array

// DON'T TOUCH THIS CODE
int nElements = 50;
int array[] = new int[nElements];
for (int i=0; i < nElements; i++){
  array[i] = (int)random(0,100);
}
println(array);

// OK NOW YOUR CODE GOES HERE
// ......????

Solutions