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
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
Accountancy,
1 month ago
Biology,
1 month ago
Hindi,
1 month ago
History,
2 months ago
Economy,
10 months ago