1.

What is the output of this program?public class jump_statment_Example { public static void main(String args[]) { int p = 4; int q = 5; for ( ; q < 10; ++q) { if (q % p == 0) { continue; } else if (q == 10) { break; } else { System.out.print(q + " "); } } } }

A. 5 6 7 9
B. 1 2 3 4 5
C. 2 3 4 5
D. 6 7 8 9
E. None of these
Answer» B. 1 2 3 4 5


Discussion

No Comment Found