Browse Source

refactoring: refactored negative number handling into one line

remotes/origin/kgV
cxnnqr 12 months ago
parent
commit
a8b6e1ea27
  1. 4
      src/kgV/kgV.c

4
src/kgV/kgV.c

@ -4,7 +4,5 @@
int kgV(int a, int b){
if(a == 0 || b == 0) return 0;
int kgV = a*b/ ggT(a, b);
int absoluteKgV = abs(kgV);
return absoluteKgV;
return abs(a*b/ ggT(a, b));
}
Loading…
Cancel
Save