Browse Source

Implemented template in output methods

remotes/origin/develop
Eric Bagus 11 months ago
parent
commit
c6141c0236
  1. 4
      src/operationHandler.c

4
src/operationHandler.c

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

Loading…
Cancel
Save