#include<stdio.h> int main(){ int a,b; double sum; char c; scanf("%d%d",&a,&b); getchar(); scanf("%c",&c); switch (c) { case '+': printf("%d",a+b); break; case '-': printf("%d",a-b); break; case '*': printf("%d",a*b); break; case '/': sum = a/b; printf("%.0lf",sum); break; case '%': printf("%d",a%b); break; default: //TODO break; } return 0; }
0.0分
0 人评分