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