How many times will the following loop execute? What will be the nal
output? [4]
int z = l;
while(z < 10)
if(z++ % 2 == 0)
System.out.println(z);
Answers
Answered by
2
The following loop
output? [4]
int z = l;
while(z < 10)
if(z++ % 2 == 0)
System.out.println(z);
will execute until z is greater or equal to 10.
Similar questions
Physics,
4 months ago
India Languages,
4 months ago
English,
4 months ago
Social Sciences,
9 months ago
Math,
1 year ago
Physics,
1 year ago