Browse Source

corrected main

remotes/origin/fakultaet
Hendrik Sitzmann 11 months ago
parent
commit
b658883ba0
  1. 4
      src/fakultaet/main.c

4
src/fakultaet/main.c

@ -8,9 +8,9 @@ int main() {
printf("Enter a number to calculate its factorial: \n"); printf("Enter a number to calculate its factorial: \n");
int number = usergetd("Enter an even number: "), minInput, NULL); 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; return 0;
} }
Loading…
Cancel
Save