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
Math,
1 month ago
Social Sciences,
1 month ago
Accountancy,
1 month ago
Math,
2 months ago
Chemistry,
8 months ago
History,
8 months ago