C-Code to take two numbers from user then take choice from user for addition, multiplication, or division perform operation and display result according to the choice. Using switch…….  case …default.

#include<stdio.h>
void main()
{
int no1,no2,res,choice;
printf("Enter first number : ");
scanf("%d",&no1);
printf("Enter second number : ");
scanf("%d",&no2);
printf("\n Mathematics Menu:");
printf("\n 1) Addition :");
printf("\n 2) Subtraction :");
printf("\n 3) Multiplication :");
printf("\n 4) Division :");
printf("\n What you desiger Press 1,2,3, or 4 :");
scanf("%d",&choice);
switch(choice)
  {
case 1:
res=no1+no2;
printf("\n The addition of Two given number is %d",res);
break;
case 2:
res=no1-no2;
printf("\n The subtraction of Two given number is %d",res);
break;
case 3:
res=no1*no2;
printf("\n The Multiplication of Two given number is %d",res);
break;
case 4:
res=no1/no2;
printf("\n The Division of Two given number is %d",res);
break;
default:
printf("\n Sorry, Invalid choice" );
break;
  }         
}