switch(productID)
{
case 1:
productName="abc";
break;
case 2:
case 3:
productName = "xyz";
break;
default:
produceName = "unknown";
break;
}
switch(productID)
{
case 1:
productName="abc";
break;
case 2:
case 3:
productName = "xyz";
break;
default:
produceName = "unknown";
break;
}