logo

Crowdly

Browser

Add to Chrome

Which of the following is the correct output for the given code snippet: int[]...

✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.

Which of the following is the correct output for the given code snippet:

int[] myArray = {51, 22, 23, 12, 2};

for(int counter = 0; counter < 5; counter++)

if ( myArray [counter] % 3 == 0)

System.out.println ( myArray[counter] / 3 + " " );

 

0%
0%
0%
0%
More questions like this

Want instant access to all verified answers on moodle.polytechnic.bh?

Get Unlimited Answers To Exam Questions - Install Crowdly Extension Now!

Browser

Add to Chrome