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