#include<stdio.h>
int main()
{
int A,B,n;
scanf("%d",&n);
for(int i = 0;i < n;i++)
{
scanf("%d %d",&A,&B);
if(B == 0)
{
printf("错误\n");
continue;
}
printf("%d + %d = %d\n",A,B,A+B);
printf("%d - %d = %d\n",A,B,A-B);
printf("%d * %d = %d\n",A,B,A*B);
printf("%d / %d = %d\n",A,B,A/B);
}
return 0;
}
原文:https://www.cnblogs.com/lbq-0412/p/9750097.html