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