
#include <stdio.h>
#include <math.h>
int main(){
int a,c;
char b;
if (scanf("%d %c %d",&a,&b,&c)!=EOF){
//printf("%d %c %d",a,b,c);
if (b == '+'){printf("%d",a+c);}
else if (b == '-'){printf("%d",a-c);}
else if (b == '*'){printf("%d",a*c);}
else if (b == '/'){printf("%d",a/c);}
else if (b == '%'){printf("%d",a%c);}
else{printf("ERROR");}
}else{
printf("input wrong");
}
return 0;
}
系统当前共有 481 篇文章