Browse Source

print the factorial

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

4
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;
}
Loading…
Cancel
Save