Browse Source

implemented case if at least one input is zero

remotes/origin/kgV
cxnnqr 11 months ago
parent
commit
6ad2f3dae7
  1. 1
      src/kgV/kgV.c

1
src/kgV/kgV.c

@ -2,5 +2,6 @@
#include "ggT.h" #include "ggT.h"
int kgV(int a, int b){ int kgV(int a, int b){
if(a == 0 || b == 0) return 0;
return a*b/ ggT(a, b); return a*b/ ggT(a, b);
} }
Loading…
Cancel
Save