From d8aedd1eba57bd78d123f0b92ceab13a6406ed4a Mon Sep 17 00:00:00 2001 From: Abdelrahman Date: Sun, 4 Feb 2024 16:14:38 +0100 Subject: [PATCH] cube funktion --- src/c/funktionen.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/c/funktionen.c b/src/c/funktionen.c index ba5383b..79e25b5 100644 --- a/src/c/funktionen.c +++ b/src/c/funktionen.c @@ -17,4 +17,9 @@ return 0; } } +// Function to calculate the cube of a number +float cube(float x) { +return x * x * x; +} +