ExamVeda
Login
Home
This question belongs to Java Program Flow Control
Flow Control
?

What is the output of the following code snippet?

int n = 5;
for (int i = 0; i < n; i++) {
System.out.print(i + " ");
}

Answer & Solution
Correct Answer: Option B
Let's discuss the solution. Join the discussion
Examveda
Question posted by Examveda
Community

Join the Discussion

No comments yet Be the first to discuss this question.