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