1.
Q1: What is the output of the following loop?
int i = 0;
while (i < 3) {
System.out.println("hi");
i++;
}

- See diagram for answer A
- See diagram for answer B
- See diagram for answer C
- See diagram for answer D
- See diagram for answer E
int i = 0;
while (i < 3) {
System.out.println("hi");
i++;
}
int i = 10;
while (i > 1) {
System.out.print(i + " ");
i--;
}
int i = 10;
while (i > 1) {
System.out.print(i + " ");
i++;
}
int i = 0;
int total = 0;
while (i <= 50) {
total += i;
i += 5;
}
System.out.println(i);
counter
after the execution of the folowing code?int counter = 0;
while (counter > 100) {
if (counter % 2 == 1)
System.out.println(counter + " is odd.");
else
System.out.println(counter + " is even.");
}
counter++;
System.out.println(counter);