From bffbcdb84f37647e2878bb18fbbe2c7fe2400294 Mon Sep 17 00:00:00 2001 From: Abdelrahman Date: Sun, 4 Feb 2024 15:58:57 +0100 Subject: [PATCH] square funktion --- src/c/funktionen.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/c/funktionen.c b/src/c/funktionen.c index b5ee404..e2b2251 100644 --- a/src/c/funktionen.c +++ b/src/c/funktionen.c @@ -2,3 +2,10 @@ #include #include #include "funktionen.h" + +// Function to calculate the square of a number +float square(float x) { +return x * x; +} + +