using System;
namespace ConsoleApplication_C_Sharp
{
class Program
{
static void Main(string[] args)
{
string s = "abcd";
for (int i = 0; i < s.Length; i++)
{
switch (s[i])
{
case 'a':
Console.Write("a - not ");
goto case 'x';
case 'b':
Console.Write("b - not ");
goto case 'x';
case 'x':
Console.WriteLine("x");
break;
default:
Console.WriteLine("default");
break;
}
}
}
}
}
/*
run:
a - not x
b - not x
default
default
*/