diff --git a/src/multiplication/multiplication.c b/src/multiplication/multiplication.c index ca9e804..aee181c 100644 --- a/src/multiplication/multiplication.c +++ b/src/multiplication/multiplication.c @@ -1,3 +1,4 @@ int multiply(int a, int b) { - return a * b; + if (a==0||b==0) return 0; + else return a * b; }