Computer Science, asked by gitasubashini, 4 months ago

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 pratyush15899
6

AnsweR:

It will print:

10

15

20

\Large\bf\underline{\red{E}\green{X}\orange{P}\pink{L}\red{a}\purple{N}\orange{A}\blue{T}\red{I}\purple{O}N}

when 'i' will equals to 25, if cond. will execute..and it will break the loop.

Similar questions