#include<stdio.h>
int main()
{
int a,b,c,choice;
printf("Enter two integer Numbers:\n");
scanf("%d%d",&a,&b);
printf("1.Addition\n2.Subtraction\n3.Multiplication\n4.Divition\n");
printf("Enter Your Choice\n");
scanf("%d",&choice);
switch(choice)
{
case 1 :
c=a+b;
printf("Addition is %d",c);
break;
case 2 :
c=a-b;
printf("Subtraction is %d",c);
break;
case 3 :
c=a*b;
printf("Multiplication is %d",c);
break;
case 4 :
c=a/b;
printf("Division id %d",c);
break;
default :
printf("Unknown Operation");
}
return 0;
}
Note: Need to be arranged in compiler after copied
OutPut:
Enter two integer Numbers:
5
9
1.Addition
2.Subtraction
3.Multiplication
4.Divition
Enter Your Choice
3
Multiplication is 45