Computer Science, asked by vaibhavgupta972005, 10 months ago

for ( x 10; x--)
{
if x==2
break
}
sopln(x)
Find output

Answers

Answered by Anonymous
0

Answer:

class Test {

public

static void main(String[] args)

{

int i = 0, j = 9;

do {

i++;

if (j-- < i++) {

break;

}

} while (i < 5);

System.out.println(i + "" + j);

}

}

Options:

1.44

2.55

3.66

4.77

The answer is option (3)

Similar questions