diff --git a/src/kgV/kgV.c b/src/kgV/kgV.c index 6c6ae52..0bdb026 100644 --- a/src/kgV/kgV.c +++ b/src/kgV/kgV.c @@ -8,5 +8,10 @@ int kgV(int a, int b){ if(a == 0 || b == 0) return 0; // Regular case of calculating the kgV - return abs(a*b/ ggT(a, b)); + int kgV = a*b/ ggT(a, b); + + // Getting the absolute value of the kgV + int absoluteKgV = abs(kgV); + + return absoluteKgV; } \ No newline at end of file