Untitled

mail@pastecode.io avatar
unknown
csharp
a year ago
422 B
2
Indexable
Never
/*
 * 
 * This is how it works:

The switch expression is evaluated once
The value of the expression is compared with the values of each case
If there is a match, the associated block of code is executed
The break and default keywords will be described later in this chapter

switch(expression) 
{
  case x:
    // code block
    break;
  case y:
    // code block
    break;
  default:
    // code block
    break;
}

 */