Skip to content

Commit 028e1b7

Browse files
authored
Update Multiply.py
1 parent c9ff050 commit 028e1b7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Multiply.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
def product(a, b):
22
if b < 0:
3-
return -product(a, -b)
3+
return -1 * product(a, -b)
44

55
if a < b:
66
return product(b, a)

0 commit comments

Comments
 (0)