#include<stdio.h>
#include<conio.h>
void main(){
char x;
int result,a,b;
printf("type the first number\n");
scanf("%d",&a);
printf("enter the operand\n");
scanf("%d",&x);
printf("type the second number\n");
scanf("%d",&b);
switch(x){
case '+':
result=a+b;
printf("value is:%d",result);
break;
case '-':
result=a-b;
printf("value is:%d",result);
break;
case '*':
result=a*b;
printf("value is:%d",result);
break;
case '/':
result=a/b;
printf("value is:%d",result);
break;
case '%':
result=a%b;
printf("value is:%d",result);
break;
default:
printf("you entered the wrong operation");
break;
}
getch();
}
this code doesnt execute
please tell me where have i gone wrong ...thank you