#include <stdio.h> int main() { double a,b; char c; while(scanf("%lf%c%lf",&a,&c,&b)!=EOF) { if(c!='+'&&c!='-'&&c!='*'&&c!='/') { printf("Invalid operation!\n"); } switch(c) { case '+':printf("%.4lf+%.4lf=%.4lf\n",a,b,a+b);break; case '-':printf("%.4lf-%.4lf=%.4lf\n",a,b,a-b);break; case '*':printf("%.4lf*%.4lf=%.4lf\n",a,b,a*b);break; case '/': if(b!=0) { printf("%.4lf/%.4lf=%.4lf\n",a,b,a/b);break; } else { printf("Wrong!Division by zero!\n");break; } } } return 0; }