From b658883ba0d58096d88db53708b34084ef44d408 Mon Sep 17 00:00:00 2001 From: Hendrik Sitzmann Date: Thu, 8 Feb 2024 05:52:01 +0100 Subject: [PATCH] corrected main --- src/fakultaet/main.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/fakultaet/main.c b/src/fakultaet/main.c index 69c4628..112c8a7 100644 --- a/src/fakultaet/main.c +++ b/src/fakultaet/main.c @@ -8,9 +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); + int result = fakultaet(number); - printf("The factorial of %d is: %d\n"); + printf("The factorial of %d is: %d\n", number, result); return 0; } \ No newline at end of file