#include<stdio.h>
#include<conio.h>
int main()
{
int n1,n2,op,val,res;
printf("Enter the first number : ");
scanf("%d",&n1);
printf("Enter the second number : ");
scanf("%d",&n2);
printf("(1) Addition \n(2) Subtraction \n(3) Multiplication\n(4) Divison");
printf("\nPlease enter the number corresponding to the operation you wish to perform : ");
scanf("%d",&op);
val=1;
if(op==1)
res=n1+n2;
else if(op==2)
res=n1-n2;
else if(op==3)
res=n1*n2;
else if(op==4)
res=n1/n2;
else
val=0;
if(val==0)
printf("You have entered an invalid number for operation!!!");
else
printf("Result = %d",res);
getch();
return 0;
}