What does the following code segment do?
int sum = 0; for (int num : numbers) { sum += num; }
Counts the number of elements in the numbers array
numbers
Calculates the product of all elements in the numbers array
Computes the sum of all elements in the numbers array
Finds the maximum value in the numbers array