#include<stdio.h> int main(void) { double value1,value2; char op; printf("Type an expression:"); scanf("%lf%c%lf",&value1,&op,&value2); switch(op){ case'+': printf("=%.2lf ",value1+value2); break; case'-': printf("=%.2lf ",value1-value2); break; case'*': printf("=%.2lf ",value1*value2); case'/': printf("=%.2lf ",value1/value2); break; default: printf("Unknow operator "); break; } return 0; }