Browse Source

average Funktion

remotes/origin/Abdelrahman
Abdelrahman 11 months ago
parent
commit
6e91e60300
  1. 5
      src/c/funktionen.c

5
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;
}
Loading…
Cancel
Save