#include<stdio.h>
int main(void)
{
int a,b;
char op;
printf("please input two op numbers:\n");
scanf("\n%d %c %d",&a,&op,&b);
switch(op)
{
case'+':
printf("\n%d+%d=%d",a,b,a+b);
break;
case'-':
printf("\n%d+%d=%d",a,b,a-b);
case'*':
printf("\n%d*%d=%d",a,b,a*b);
break;
case'/':
if(b==0)
printf("no sense!");
else
printf("\n%d/%d=%d",a,b,a/b);
break;
}
return 0;
}
int main(void)
{
int a,b;
char op;
printf("please input two op numbers:\n");
scanf("\n%d %c %d",&a,&op,&b);
switch(op)
{
case'+':
printf("\n%d+%d=%d",a,b,a+b);
break;
case'-':
printf("\n%d+%d=%d",a,b,a-b);
case'*':
printf("\n%d*%d=%d",a,b,a*b);
break;
case'/':
if(b==0)
printf("no sense!");
else
printf("\n%d/%d=%d",a,b,a/b);
break;
}
return 0;
}