From a98e9ecc1831e787019b251a3faa02356ce61eb5 Mon Sep 17 00:00:00 2001 From: Hendrik Sitzmann Date: Thu, 8 Feb 2024 19:22:18 +0100 Subject: [PATCH] refactoring: added comments in main --- src/primzahl/main.c | 3 +++ 1 file changed, 3 insertions(+) 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