While Loop Output
What does the above program print when executed?
public class LoopTest {
public static void main(String[] args) {
int count = 0;
while(count < 3) {
System.out.print(count + " ");
count++;
}
}
}
A
0 1 2
B
1 2 3
C
0 1 2 3
D
Compilation Error
APFIVE