diff --git a/src/c/funktionen.c b/src/c/funktionen.c index 6295843..349fb54 100644 --- a/src/c/funktionen.c +++ b/src/c/funktionen.c @@ -97,3 +97,8 @@ float minimum(float x, float y) { return fmin(x, y); } +// Function to calculate the average of two numbers +float average(float x, float y) { + return (x + y) / 2; +} +