Answers for "switch statment syntax c#"

C#
1

switch c#

int something = 2;

switch(something)
{
  case 1:
    Console.WriteLine(1);
    break;
  case 2:
    Console.WriteLine(2);
    break;
}
Posted by: Guest on April-21-2021

C# Answers by Framework

Browse Popular Code Answers by Language