Curioustab
Aptitude
General Knowledge
Verbal Reasoning
Computer Science
Interview
Aptitude
General Knowledge
Verbal Reasoning
Computer Science
Interview
Home
»
C# Programming
»
Control Instructions
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; }
1 2 3 4 5 6 7 8 9 10
1 2 3 4
0 1 2 3 4 5 6 7 8 9 10
4 5 6 7 8 9 10
4
Show Answer
Correct Answer:
0 1 2 3 4 5 6 7 8 9 10
← Previous
Next →
Discussion & Comments
No comments yet. Be the first to comment!
Name:
Comment:
Post Comment