diff --git a/src/arithmeticAddition.c b/src/arithmeticAddition.c index 7d664f2..8f93738 100644 --- a/src/arithmeticAddition.c +++ b/src/arithmeticAddition.c @@ -16,4 +16,16 @@ double* addition_double(double number1, double number2) { double* result = malloc(sizeof(double)); *result = number1+number2; return result; +} + +float* addition_float(float number1, float number2) { + float* result = malloc(sizeof(float)); + *result = number1+number2; + return result; +} + +long* addition_long(long number1, long number2) { + long* result = malloc(sizeof(long)); + *result = number1+number2; + return result; } \ No newline at end of file diff --git a/src/arithmeticAddition.h b/src/arithmeticAddition.h index ab7db2a..3bad5ba 100644 --- a/src/arithmeticAddition.h +++ b/src/arithmeticAddition.h @@ -5,4 +5,8 @@ int* addition_integer(int, int); double* addition_double(double, double); +float* addition_float(float, float); + +long* addition_long(long, long); + #endif //THEADMIRALS_ARITHMETICADDITION_H