Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

C# Switch and case

int number = 2;

switch(number)
{
	case 1:
		Console.WriteLine("Number is 1");
		break;
	case 2:
		Console.WriteLine("Number is 2");
		break;
}
Source by www.c-sharpcorner.com #
 
PREVIOUS NEXT
Tagged: #Switch #case
ADD COMMENT
Topic
Name
2+9 =