From 353a06181e5515f590d56df86e0592fd792dc787 Mon Sep 17 00:00:00 2001 From: Hendrik Sitzmann Date: Thu, 8 Feb 2024 02:18:44 +0100 Subject: [PATCH] added function to get user input --- src/fakultaet/main.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/fakultaet/main.c b/src/fakultaet/main.c index eae0702..f11f8d4 100644 --- a/src/fakultaet/main.c +++ b/src/fakultaet/main.c @@ -3,7 +3,10 @@ #include 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; } \ No newline at end of file