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. low
B. hell
C. helloween
D. hello
Links:
The break Statement