Home » C# Programming » Control Instructions

What does the following C#.NET code snippet will print? int i = 0, j = 0; label: i++; j+=i; if (i < 10) { Console.Write(i +" "); goto label; }

Correct Answer: Prints 1 to 9

← Previous Question Next Question→

Discussion & Comments

No comments yet. Be the first to comment!
Join Discussion