Browse Source

added function to get user input

remotes/origin/fakultaet
Hendrik Sitzmann 11 months ago
parent
commit
353a06181e
  1. 3
      src/fakultaet/main.c

3
src/fakultaet/main.c

@ -3,7 +3,10 @@
#include <stdio.h>
int main() {
int minInput = 0;
printf("Enter a number to calculate its factorial: \n");
int number = usergetd("Enter an even number: "), minInput, NULL);
return 0;
}
Loading…
Cancel
Save