#include<stdio.h>
int main()
{
int num1,num2,num3;
char i;
printf("请输入数字 运算符 数字等于");
scanf("%d%c%d",&num1,&i,&num2);
switch(i)
{
case '+':num3=num1+num2;break;
case '-':num3=num1-num2;break;
case '*':num3=num1*num2;break;
case '/':num3=num1/num2;break;
}
printf("%d",num3);
return 0;
}