?
What is the result of the following code snippet?
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);
Join the Discussion
Login to post a comment or share your explanation.
Login