|
@ -3,6 +3,7 @@ |
|
|
#include <ctype.h> |
|
|
#include <ctype.h> |
|
|
#include <stdlib.h> |
|
|
#include <stdlib.h> |
|
|
#include <string.h> |
|
|
#include <string.h> |
|
|
|
|
|
#include <stdio.h> |
|
|
|
|
|
|
|
|
// checking integer input as operation id |
|
|
// checking integer input as operation id |
|
|
bool checkOperationInput(int input) { |
|
|
bool checkOperationInput(int input) { |
|
@ -94,4 +95,8 @@ int extractFirstNumber(char* str) { |
|
|
strcpy(str, temp); |
|
|
strcpy(str, temp); |
|
|
|
|
|
|
|
|
return number; |
|
|
return number; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
void outputInteger(int output) { |
|
|
|
|
|
printf("Result: %d", output); |
|
|
} |
|
|
} |