diff --git a/src/primzahl/main.c b/src/primzahl/main.c index ecf8960..8480010 100644 --- a/src/primzahl/main.c +++ b/src/primzahl/main.c @@ -3,10 +3,13 @@ #include int main() { + // set the smallest possible input int minInput = 0; + //get user input int num = usergetd("Enter a positive number: ", minInput, NULL); + //check if its a prime number or not if (primzahl(num)) printf("%d is a prime number.\n", num); else