#include <stdio.h>

int main() {

  char op;
  double first, second;
  printf("Enter an operator (+, -, *, /): ");
  scanf("%c", &op);
  printf("Enter first operand: \n");
  scanf("%lf", &first);
  printf("Enter second operand: \n");
  scanf("%lf", &second);

  switch (op) {
    case '+':
      printf("%.1lf + %.1lf = %.1lf \n", first, second, first + second);
      break;
    case '-':
      printf("%.1lf - %.1lf = %.1lf \n", first, second, first - second);
      break;
    case '*':
      printf("%.1lf * %.1lf = %.1lf \n", first, second, first * second);
      break;
    case '/':
      printf("%.1lf / %.1lf = %.1lf \n", first, second, first / second);
      break;
    //operator doesn't match any case constant
    default:
      printf("Error! Operator is not correct! Try Again! \n");
  }
printf("See You Soon!");
  return 0;
}
