Browse Source

refactoring case one or two zeros always return 0

remotes/origin/userinput
fdai7968 11 months ago
parent
commit
e037d3237a
  1. 3
      src/multiplication/multiplication.c

3
src/multiplication/multiplication.c

@ -1,3 +1,4 @@
int multiply(int a, int b) { int multiply(int a, int b) {
return a * b;
if (a==0||b==0) return 0;
else return a * b;
} }
Loading…
Cancel
Save