Computer Science, asked by akae1726, 2 months ago

66. What is the output of the below Java program?

int balls[], rounds=3;
balls = new int[rounds];
for(int i=0; i balls[i] = (i+1)*2;
for(int j=0; j< balls.length; j++)
System.out.print(balls[j] + ∥,∥);

Answers

Answered by madhumadhurya9
1

Answer:

Syntax error.

Explanation:

for loop syntax is

for(initialization; test expression; increment/decrement)

{

statements;

}

Check your question.

Please do mark this as Brainliest!

Similar questions