3-5
#include<stdio.h> int main(void) { double value1,value2; char op; printf("Type in an expression:"); scanf("%Lf%c%Lf",&value1,&op,&value2); if(op=='+') printf("=%.2f\n",value1+value2); else if(op=='-') printf("=%.2f\n",value1-value2); else if(op=='*') printf("=%.2f\n",value1*value2); else if(op=='/') printf("=%.2f\n",value1/value2); printf("Unknown operator\n"); return 0; }