?
What is the output of the following code snippet?
What is the output of the following code snippet?
int n = 5;
for (int i = 0; i < n; i++) {
System.out.print(i + " ");
}
for (int i = 0; i < n; i++) {
System.out.print(i + " ");
}
Join the Discussion
Login to post a comment or share your explanation.
Login