← Back to Question List
C# Quiz #17
switch Statement Output
What does this code print?
📄 Code
1int x = 2;2switch (x) {3 case 1:4 Console.Write("one");5 break;6 case 2:7 Console.Write("two");8 break;9 default:10 Console.Write("other");11 break;12}