Create a function named divide, which has the following details: It needs to receive
Fantastic news! We've Found the answer you've been seeking!
Question:
Create a function named divide, which has the following details:
It needs to receive 2 parameters.
The first parameter should be divided by the second one.
The function should return the result of the division as an integer.
If the result is less than 0, the function should return a value of 0.
If any errors occur during division, the function should return a value of −1
Related Book For
Posted Date: