From 7c0acfe34432d335dbcf99aa15834b258c24d47f Mon Sep 17 00:00:00 2001 From: Abdelrahman Date: Sun, 4 Feb 2024 21:07:40 +0100 Subject: [PATCH] factorial Funktion header --- src/c/funktionen.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/c/funktionen.h b/src/c/funktionen.h index e8b0d08..7a45053 100644 --- a/src/c/funktionen.h +++ b/src/c/funktionen.h @@ -25,4 +25,7 @@ float naturalLogarithm(float x); // Function to calculate the exponentiation of a number to the power of another number float power(float x, float y); +// Function to calculate the factorial of a number +int factorial(int x); + #endif \ No newline at end of file