#include
Int main ()
{float a, b, flag=1;
Char ch;
The scanf (" % f ", & amp; a);
getchar();
The scanf (" % c ", & amp; Ch);
If (ch=='=') {printf (" % d ", a); }
Else if (ch!='+' | | ch!='-' | | ch!='*' | | ch!='/')
{printf (" ERROR "); }
The else
{
While (ch!='=' | | flag!=0)
{the scanf (" % f ", & amp; B);
If (ch=='/')
{if (b!=0)
{a=a/b; }
The else {printf (" ERROR "); flag=0; }
}
Else if (ch=='+') {a=a + b; }
Else if (ch=='*') {a=a * b; }
Else if (ch=='-') {a=a - b; }
The else {printf (" ERROR "); flag=0; }
The scanf (" % c ", & amp; Ch);
If (ch=='=') {printf (" % d ", a); flag=0; }
{if (flag=0) break; }
getchar();
}
}
return 0;
}