A
Q. What is the output of the following code?
Code:
int x = 5;
while (x > 0) {
System.out.println(x);
x--;
}
while (x > 0) {
System.out.println(x);
x--;
}
- Correct Answer - Option(A)
- Views: 11
- Filed under category Java
- Hashtags:
Discusssion
Login to discuss.