|
@ -98,18 +98,22 @@ int extractFirstNumber(char* str) { |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
void outputInteger(int output) { |
|
|
void outputInteger(int output) { |
|
|
|
|
|
outputTemplate(); |
|
|
printf("Result: %d", output); |
|
|
printf("Result: %d", output); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
void outputLong(long output) { |
|
|
void outputLong(long output) { |
|
|
|
|
|
outputTemplate(); |
|
|
printf("Result: %ld", output); |
|
|
printf("Result: %ld", output); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
void outputDouble(double output) { |
|
|
void outputDouble(double output) { |
|
|
|
|
|
outputTemplate(); |
|
|
printf("Result: %lf", output); |
|
|
printf("Result: %lf", output); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
void outputFloat(float output) { |
|
|
void outputFloat(float output) { |
|
|
|
|
|
outputTemplate(); |
|
|
printf("Result: %f", output); |
|
|
printf("Result: %f", output); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|