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