/**
 * This exercise focuses on performing division using the AND operator.
 * The code below demonstrates how to divide two numbers and return the quotient if both numbers are positive,
 * otherwise it returns 0. If the second number is 0, it raises a ValueError.
 *
 * @param a The first number
 * @param b The second number
 * @return The quotient if both numbers are positive, otherwise 0
 * @throws IllegalArgumentException If the second number is 0
 *
 * Example:
 * divisionAndOperator(10.0, 2.0) -> 5.0
 * divisionAndOperator(-10.0, 5.0) -> 0.0
 * divisionAndOperator(12.0, 0.0) -> IllegalArgumentException
 */
fun divisionAndOperator(a: Double, b: Double): Double {

    if (a > 0 && b > 0) {
        return a / b
    } else if (a == 0.0 || b == 0.0) {
        throw IllegalArgumentException("Cannot divide by zero!")
    }
    return 0.0
}
/**
 * This exercise focuses on performing division using the AND operator.
 * The code below demonstrates how to divide two numbers and return the quotient if both numbers are positive,
 * otherwise it returns 0. If the second number is 0, it raises a ValueError.
 *
 * @param a The first number
 * @param b The second number
 * @return The quotient if both numbers are positive, otherwise 0
 * @throws IllegalArgumentException If the second number is 0
 *
 * Example:
 * divisionAndOperator(10.0, 2.0) -> 5.0
 * divisionAndOperator(-10.0, 5.0) -> 0.0
 * divisionAndOperator(12.0, 0.0) -> IllegalArgumentException
 */
fun divisionAndOperator(a: Double, b: Double): Double {
/**
 * This exercise focuses on performing division using the AND operator.
 * The code below demonstrates how to divide two numbers and return the quotient if both numbers are positive,
 * otherwise it returns 0. If the second number is 0, it raises a ValueError.
 *
 * @param a The first number
 * @param b The second number
 * @return The quotient if both numbers are positive, otherwise 0
 * @throws IllegalArgumentException If the second number is 0
 *
 * Example:
 * divisionAndOperator(10.0, 2.0) -> 5.0
 * divisionAndOperator(-10.0, 5.0) -> 0.0
 * divisionAndOperator(12.0, 0.0) -> IllegalArgumentException
 */
fun divisionAndOperator(a: Double, b: Double): Double {

    if (a > 0 && b > 0) {
        return a / b
    } else if (a == 0.0 || b == 0.0) {
        throw IllegalArgumentException("Cannot divide by zero!")
    }
    return 0.0
}