#include
void main() { float x,y,z; char c; int b;
scanf("%f%c%f",&x,&c,&y);
switch ( c ) {
case '+': b=1; z=x+y; break;
case '-': b=1; z=x-y; break;
case '*': b=1; z=x*y; break;
case '/': if ( y!=0 ) { b=1; z=x/y; } else b=0; break;
default: b=0; break;
}
printf("%f%c%f=",x,c,y); if ( b ) printf("%f\n",z); else printf("?\n");
}
#include
void main() { float x,y,z; char c; int b;
scanf("%f%c%f",&x,&c,&y);
switch ( c ) {
case '+': b=1; z=x+y; break;
case '-': b=1; z=x-y; break;
case '*': b=1; z=x*y; break;
case '/': if ( y!=0 ) { b=1; z=x/y; } else b=0; break;
default: b=0; break;
}
printf("%f%c%f=",x,c,y); if ( b ) printf("%f\n",z); else printf("?\n");
}