int number = 2; switch(number) { case 1: Console.WriteLine("Number is 1"); break; case 2: Console.WriteLine("Number is 2"); break; }