Answers for "switch case statement in c#"

C#
3

switch c#

var caseSwitch = 1;
switch (caseSwitch)
  {
    case 1:
      Console.WriteLine("Case 1");
      break;
    case 2:
      Console.WriteLine("Case 2");
      break;
    default:
      Console.WriteLine("Default case");
      break;
  }
Posted by: Guest on January-26-2021

Code answers related to "switch case statement in c#"

C# Answers by Framework

Browse Popular Code Answers by Language