Computer Science, asked by nannemnarsaiah, 10 months ago

1. What is the output from the following code snippet?
intx= 1;
inty:
while(++x<5)
y++,
System.out.println(y):
The code will not compile.
-
+
w​

Answers

Answered by Ananyamisra00
0

Answer:

code will not compile because there is no value intialized to y which will be updated inside the loop

Similar questions