From 7afe7b42308041951400748cca3a5e0b309edc66 Mon Sep 17 00:00:00 2001 From: cxnnqr Date: Tue, 6 Feb 2024 13:28:21 +0100 Subject: [PATCH] Changed min Numbers to NULL because negative numbers can be handled too --- src/kgV/main.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/kgV/main.c b/src/kgV/main.c index 198b263..e32341d 100644 --- a/src/kgV/main.c +++ b/src/kgV/main.c @@ -4,8 +4,8 @@ int main(){ printf("add two numbers:\n"); - int firstNum = usergetd("first number: ", 0, NULL); - int secondNum = usergetd("second number: ", 0, NULL); + int firstNum = usergetd("first number: ", NULL, NULL); + int secondNum = usergetd("second number: ", NULL, NULL); int result = kgV(firstNum, secondNum); printf("The result is: %d\n", result);