|
Listing 9-23 extracted from chapter Fundamental concepts of the language
Listing 9-22< > Listing 9-24
This listing can be compiled with the command line: csc.exe /target:exe Example_9_23.cs Errors: 0 Warnings: 0
Example_9_23.cs
class Program {
static void Main() {
for (int i = 0; i < 10; i++){
System.Console.Write(i);
if (i == 2) continue;
System.Console.Write("C");
if (i == 3) break;
System.Console.Write("B");
}
}
}
Copyright Patrick Smacchia 2006 2007
|