Give output also state how many times the loop repeats:
for(i=1;i<=5;i++)
{
if(i==5) ;
continue;
System.out.println(i);
}
Answers
Answered by
1
The loop will repeat 5 times
the output will be
1
2
3
4
as when i is 5 we are continuing the for loop and the Print statement is after if
Similar questions