1.

What will be the output of the code snippet given below? int i; for(i = 0; i<=10; i++) { if(i == 4) { Console.Write(i + " "); continue; } else if (i != 4) Console.Write(i + " "); else break; }

A. 1 2 3 4 5 6 7 8 9 10
B. 1 2 3 4
C. 0 1 2 3 4 5 6 7 8 9 10
D. 4 5 6 7 8 9 10
E. 4
Answer» D. 4 5 6 7 8 9 10


Discussion

No Comment Found

Related MCQs