You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

15 lines
400 B
C

typedef enum {
ADD,
SUBTRACT,
MULTIPLY,
DIVIDE
} MathOperator;
extern const char operators[];
void add(double firstOperand, double secondOperand);
void subtract(double firstOperand, double secondOperand);
void multiply(double firstOperand, double secondOperand);
void divide(double firstOperand, double secondOperand);
void getOperands(double *firstOperand, double *secondOperand);