Problem
1. What does this enhanced for loop do?
int counter = 0
for (double element : values)
{
if (element == 0) {counter++;}
}
2. Write an enhanced for loop that prints all elements in the array values.
3. Write an enhanced for loop that multiplies all elements in a double[] array named factors, accumulating the result in a variable named product.