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);
What is the result of the following code snippet?int k = 10; Correct Answer 10 8 6 4 2
do {
System.out.print(k + " ");
k -= 2;
} while (k > 0);
মোঃ আরিফুল ইসলাম
Feb 20, 2025