break and continue in one loop
QuizEasyJava onlyAsked in: TCS, Wipro
What does this print?
for (int i = 1; i <= 5; i++) {
if (i == 3) continue;
if (i == 5) break;
System.out.print(i + " ");
}to answer and keep your progress. Reading is free for everyone.