Browse Source

deleted terminal condition

remotes/origin/fakultaet
Hendrik Sitzmann 11 months ago
parent
commit
70e496ccfa
  1. 5
      src/fakultaet/fakultaet.c

5
src/fakultaet/fakultaet.c

@ -1,11 +1,6 @@
#include <stdio.h> #include <stdio.h>
int fakultaet(int n) { int fakultaet(int n) {
if (n < 0) {
printf("Fakultaet kann nicht für negative Zahlen berechnet werden!\n");
return -1;
}
if (n == 0 || n == 1) if (n == 0 || n == 1)
return 1; return 1;

Loading…
Cancel
Save