/**
 * Given two input integers, check if the first number is divisible by the second number.
 * If it is divisible, return true. Otherwise, return false.
 *
 * Additionally, if the first number is divisible by the second number, check if the second number
 * is even. If it is even, return true. Otherwise, return false.
 *
 * Example:
 * modShortCircuit(15, 5) -> true
 * modShortCircuit(12, 3) -> true
 * modShortCircuit(9, 6) -> false
 *
 * Hint: Use the modulus operator (%) to check for divisibility.
 */
fun modShortCircuit(input1: Int, input2: Int): Boolean {

    // Check if the first number is divisible by the second number
    if (input1 % input2 == 0) {
        // Check if the second number is even
        if (input2 % 2 == 0) {
            return true
        } else {
            return false
        }
    } else {
        return false
    }
}
/**
 * Given two input integers, check if the first number is divisible by the second number.
 * If it is divisible, return true. Otherwise, return false.
 *
 * Additionally, if the first number is divisible by the second number, check if the second number
 * is even. If it is even, return true. Otherwise, return false.
 *
 * Example:
 * modShortCircuit(15, 5) -> true
 * modShortCircuit(12, 3) -> true
 * modShortCircuit(9, 6) -> false
 *
 * Hint: Use the modulus operator (%) to check for divisibility.
 */
fun modShortCircuit(input1: Int, input2: Int): Boolean {
/**
 * Given two input integers, check if the first number is divisible by the second number.
 * If it is divisible, return true. Otherwise, return false.
 *
 * Additionally, if the first number is divisible by the second number, check if the second number
 * is even. If it is even, return true. Otherwise, return false.
 *
 * Example:
 * modShortCircuit(15, 5) -> true
 * modShortCircuit(12, 3) -> true
 * modShortCircuit(9, 6) -> false
 *
 * Hint: Use the modulus operator (%) to check for divisibility.
 */
fun modShortCircuit(input1: Int, input2: Int): Boolean {

    // Check if the first number is divisible by the second number
    if (input1 % input2 == 0) {
        // Check if the second number is even
        if (input2 % 2 == 0) {
            return true
        } else {
            return false
        }
    } else {
        return false
    }
}