Computer Science, asked by alpha22, 9 months ago

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 Anonymous
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