Which of the following code snippets will print the numbers 1 through 10? Choose the correct answer:
A. int i = 0;
while (i <= 10) {
System.out.println(i);
i++;
}
B. int i = 1;
while (i <= 10) {
System.out.println(i);
i++;
}
C. int i = 0;
while (i < 10) {
System.out.println(i);
}
D. int i = 1;
while (i < 11) {
System.out.println(i);
}