Give the output:
int x, y;
for( x = 5 ; x <= 10 ; x++ )
{
if ( x = = 7 )
{
continue;
}
else if ( x > 8 )
{
break;
}
System.out.println(x);
} please help me
Answers
Answered by
1
Answer:
X=5,6,7,
Because as you mentioned, x will increase and stop till 7 comes and then system check the else if condition that is x should not greater than 8 so output will be 5,6,7
Similar questions