How to code switch statements

switch(productID)

{

case 1:

productName="abc";

break;

case 2:

case 3:

productName = "xyz";

break;

default:

produceName = "unknown";

break;

}