printf("Type the operator +,-,/,* and your prob in this format 5+5\n",x,y);
You don't need x and y in here just use
Code:
printf("Type the operator +,-,/,* and your prob in this format 5+5\n");
scanf("%d",&x, &y, &var);
Your missing the format specifiers for 2 of the variables and also you ask for the format to be 5+5 so the order of your variables should be x var y
Code:
scanf(%d%c%d", &x, &var, &y);
That should get you going you might want to add a default to your switch to allow for an incorrect symbol.