Browse Source

added function

remotes/origin/primzahl
Hendrik Sitzmann 11 months ago
parent
commit
0c9d284fc7
  1. 5
      src/primzahl/main.c

5
src/primzahl/main.c

@ -8,5 +8,10 @@ int main() {
int num = usergetd("Enter a positive number: ", minInput, NULL); int num = usergetd("Enter a positive number: ", minInput, NULL);
if (primzahl(num))
printf("%d is a prime number.\n", num);
else
printf("%d is not a prime number.\n", num);
return 0; return 0;
} }
Loading…
Cancel
Save