From 2717c18f56f9405a1f21ed95584eb4f2b988a603 Mon Sep 17 00:00:00 2001 From: Hendrik Sitzmann Date: Thu, 8 Feb 2024 03:03:23 +0100 Subject: [PATCH] print the factorial --- src/fakultaet/main.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/fakultaet/main.c b/src/fakultaet/main.c index f11f8d4..69c4628 100644 --- a/src/fakultaet/main.c +++ b/src/fakultaet/main.c @@ -8,5 +8,9 @@ int main() { printf("Enter a number to calculate its factorial: \n"); int number = usergetd("Enter an even number: "), minInput, NULL); + int result = fakultaet(num); + + printf("The factorial of %d is: %d\n"); + return 0; } \ No newline at end of file