using System; public class Test { public static void Main() { int val = 2; switch (val) { case 1: Console.WriteLine("1"); goto case 3; case 2: Console.WriteLine("2"); case 3: Console.WriteLine("3"); break; } } }
Standard input is empty
2 3
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!