From edf2d874429627b5ef9ff94f0a0bf6914340b412 Mon Sep 17 00:00:00 2001 From: cxnnqr Date: Tue, 6 Feb 2024 13:30:52 +0100 Subject: [PATCH] refactoring: added comments --- src/kgV/main.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/kgV/main.c b/src/kgV/main.c index d18e516..fe7b6a0 100644 --- a/src/kgV/main.c +++ b/src/kgV/main.c @@ -3,10 +3,16 @@ #include int main(){ + + // User input for the two numbers. No matter of positive or negative printf("Please add the two numbers you want the kgV of:\n"); int firstNum = usergetd("first number: ", NULL, NULL); int secondNum = usergetd("second number: ", NULL, NULL); + + // Calculation of the kgV int result = kgV(firstNum, secondNum); + + // Print the result printf("The kgV of %d and %d is: %d\n", firstNum, secondNum, result); return 0;