Write the output of the following loop:
int i;
for(i=10;i<=30;i+=5)
{ if(i==25)
break;
System.out.println(i);
}
Answers
Answered by
6
AnsweR:
It will print:
10
15
20
when 'i' will equals to 25, if cond. will execute..and it will break the loop.
Similar questions