DZone Snippets is a public source code repository. Easily build up your personal collection of code snippets, categorize them with tags / keywords, and share them with the world

Snippets has posted 5883 posts at DZone. View Full User Profile

Swithc Case: Seletion Statement With Choice Of Constants

03.26.2012
| 1342 views |
  • submit to reddit
        Swithc case: Selection statement with choice of constants

        int standard = 10;
	switch (standard)
	{
	    case 11:
		Console.WriteLine("Standard Eleven");
		break;
	    case 10:
		Console.WriteLine("Standard Ten");
		break;
	}