lenelex.com
Home
Quizzes
Games
Register
Log in
Question 1 of 8
What is the output of the following code?
string text = "helloween"; int n = 0; foreach (char c in text) { Console.Write(c); if (++n > 4) { break; } }
A. helloween
B. low
C. hello
D. hell
Links:
The break Statement