(a, b)
| 1 | def product(a, b): |
| 2 | # Handle negative values |
| 3 | if b < 0: |
| 4 | return -product(a, -b) |
| 5 | |
| 6 | if a < b: |
| 7 | return product(b, a) |
| 8 | elif b != 0: |
| 9 | return a + product(a, b - 1) |
| 10 | else: |
| 11 | return 0 |
| 12 | |
| 13 | |
| 14 | a = int(input("Enter first number: ")) |
no outgoing calls
no test coverage detected