Balloon Comes!
#include<iostream>
using namespace std;
#include<iomanip>
int main()
{
int i,n,a,b;
char c;
cin>>n;
cout<<setiosflags(ios::fixed);
cout.precision(2);
for(i = 0 ; i < n ; i++)
{
cin>>c>>a>>b;
if(c == '+')
{
cout << a+b <<endl;
}
if(c == '-')
{
cout << a-b <<endl;
}
if(c == '*')
{
cout << a*b <<endl;
}
if(c == '/')
{
if(a % b == 0)
cout << a/b <<endl;
else
cout<< (static_cast<double>(a) / static_cast<double>(b)) <<endl;
}
}
return 0;
}