From 5cf4056435cccb209a1e27facf5e7980540bddbf Mon Sep 17 00:00:00 2001 From: cxnnqr Date: Tue, 6 Feb 2024 13:32:09 +0100 Subject: [PATCH] refactoring: added comments --- src/kgV/kgV.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/kgV/kgV.c b/src/kgV/kgV.c index 64983ee..6c6ae52 100644 --- a/src/kgV/kgV.c +++ b/src/kgV/kgV.c @@ -3,6 +3,10 @@ #include "ggT.h" int kgV(int a, int b){ + + // Case for at least one number is Zero if(a == 0 || b == 0) return 0; + + // Regular case of calculating the kgV return abs(a*b/ ggT(a, b)); } \ No newline at end of file