What is the result of the following code snippet?
int k = 10;
do {
System.out.print(k + " ");
k -= 2;
} while (k > 0);
do {
System.out.print(k + " ");
k -= 2;
} while (k > 0);
A. 10 8 6 4
B. 2 4 6 8 10
C. 10 8 6 4 2
D. 1 3 5 7 9
Answer: Option C
Join The Discussion