/**
 * This exercise tests your understanding of the OR operator and Boolean operations.
 *
 * Complete the function below to solve the following problem:
 * Given four boolean variables: a, b, c, and d.
 * Write a piece of code that returns true if at least two of the variables are true,
 * and false otherwise.
 *
 * Your task is to fill in the missing lines of code in the function body, replacing the 'pass' statement.
 * You can use the OR operator (||) and Boolean operations to complete the function.
 *
 * Example:
 * if a = true, b = false, c = true, d = false, the function should return true,
 * because at least two of the variables (a and c) are true.
 *
 * Complete the function to solve the problem.
 */
fun operationsQuiz(a: Boolean, b: Boolean, c: Boolean, d: Boolean): Boolean {

    var count = 0

    if (a) {
        count++
    }

    // Add your code here to increment count if b is true
    if (b) {
        count++
    }

    // Add your code here to increment count if c is true
    if (c) {
        count++
    }

    // Add your code here to increment count if d is true
    if (d) {
        count++
    }

    return count >= 2
}
/**
 * This exercise tests your understanding of the OR operator and Boolean operations.
 *
 * Complete the function below to solve the following problem:
 * Given four boolean variables: a, b, c, and d.
 * Write a piece of code that returns true if at least two of the variables are true,
 * and false otherwise.
 *
 * Your task is to fill in the missing lines of code in the function body, replacing the 'pass' statement.
 * You can use the OR operator (||) and Boolean operations to complete the function.
 *
 * Example:
 * if a = true, b = false, c = true, d = false, the function should return true,
 * because at least two of the variables (a and c) are true.
 *
 * Complete the function to solve the problem.
 */
fun operationsQuiz(a: Boolean, b: Boolean, c: Boolean, d: Boolean): Boolean {
/**
 * This exercise tests your understanding of the OR operator and Boolean operations.
 *
 * Complete the function below to solve the following problem:
 * Given four boolean variables: a, b, c, and d.
 * Write a piece of code that returns true if at least two of the variables are true,
 * and false otherwise.
 *
 * Your task is to fill in the missing lines of code in the function body, replacing the 'pass' statement.
 * You can use the OR operator (||) and Boolean operations to complete the function.
 *
 * Example:
 * if a = true, b = false, c = true, d = false, the function should return true,
 * because at least two of the variables (a and c) are true.
 *
 * Complete the function to solve the problem.
 */
fun operationsQuiz(a: Boolean, b: Boolean, c: Boolean, d: Boolean): Boolean {

    var count = 0

    if (a) {
        count++
    }

    // Add your code here to increment count if b is true
    if (b) {
        count++
    }

    // Add your code here to increment count if c is true
    if (c) {
        count++
    }

    // Add your code here to increment count if d is true
    if (d) {
        count++
    }

    return count >= 2
}