From 4ce382161958281194c3497f2b6eac5465743a6d Mon Sep 17 00:00:00 2001 From: Hendrik Sitzmann Date: Thu, 8 Feb 2024 09:09:55 +0100 Subject: [PATCH] refactoring: changed print and maxInput --- src/fakultaet/main.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/fakultaet/main.c b/src/fakultaet/main.c index 5de7643..4132634 100644 --- a/src/fakultaet/main.c +++ b/src/fakultaet/main.c @@ -5,9 +5,9 @@ int main() { // minInput is set to 0 so there won't be any negative numbers int minInput = 0; + int maxInput = 12; - printf("Enter a number to calculate its factorial: \n"); - int number = usergetd("Enter an even number: "), minInput, NULL); + int number = usergetd("Enter a positive number below 13: "), minInput, maxInput); int result = fakultaet(number); // result now has the factorial of the user input