// printing sum of two numbers or product of two numbers according to the
// entered choice 1-sum, 2-product, 3 or any other from 1 or 2,
// display wrong code.
switch(ch)
{
case 1:
System.out.println(“The sum of entered two numbers is “+(x+y));
break;
case 2:
System.out.println(“The product of the two numbers is”+(x*y));
break;
default:
System.out.println(“Sorry this choice is invalid”);
}
}
}