diff --git a/src/kgV/kgV.c b/src/kgV/kgV.c index 2821d84..e050d06 100644 --- a/src/kgV/kgV.c +++ b/src/kgV/kgV.c @@ -1,7 +1,10 @@ #include +#include #include "ggT.h" int kgV(int a, int b){ if(a == 0 || b == 0) return 0; - return a*b/ ggT(a, b); + int kgV = a*b/ ggT(a, b); + int absoluteKgV = abs(kgV); + return absoluteKgV; } \ No newline at end of file