1 #include<cstdio>
 2 #include<iostream>
 3 using namespace std;
 4 
 5 int main()
 6 {
 7     //freopen("input.txt","r",stdin);
 8     int a,b;
 9     char op;
10     int T;
11     cin>>T;
12     while(T--)
13     {
14         cin>>op>>a>>b;//此处因为scanf问题 所以换成C++输入,应该是忘了getchar()的问题吧
15         switch(op)
16         {
17         case '+':
18             cout<<a+b<<endl;
19             break;
20         case '-':
21             cout<<a-b<<endl;
22             break;
23         case '*':
24             cout<<a*b<<endl;
25             break;
26         case '/':
27             if(a%b==0) cout<<a/b<<endl;
28             else printf("%.2f\n",(float)a/(float)b);//不建议混用C、c++输入输出
29             break;
30         }
31     }
32 
33     return 0;
34 }