#include <stdio.h>
#include <string.h>
#include <stdlib.h>
int main()
{
int a, b;
char s;
while (scanf("%d %s %d", &a, &s, &b) != EOF)
{
if (s=='+')
printf("%d\n",a+b);
else if(s=='-')
printf("%d\n",a-b);
else if(s=='*')
printf("%d\n",a*b);
else if (s=='/')
printf("%d\n",a/b);
}
}
您的答案為: 3 正確答案為: 15