怎样编写混合运算计算器啊
我编写的的二则计算器为什么只能进行一种运算啊?各位大侠帮帮忙
#include <stdio.h>
main()
{
int o,x,y,m;
while(1)
{
scanf("%d%d%d",&o,&x,&y);
while ("&o"=="1");
m=x+y;
printf("%d+%d=%d\n",x,y,m);
getchar();
getchar();
}
while(2)
{
scanf("%d%d%d",&o,&x,&y);
while ("&o"=="2");
m=x-y;
printf("&d-&d=%d\n",&x,&y,&m);
getchar();
getchar();
}
}