/**
 * In this exercise, you need to determine the result of a complex logical expression involving short-circuiting and precedence of logical operators.
 *
 * Given three variables: a, b, and c, each representing a boolean value, you need to calculate the result of the following expression:
 *
 * a and (b or (not c and a))
 *
 * Use short-circuiting and the precedence of logical operators to make the calculation more efficient.
 *
 * Return the final result of the expression.
 */
fun calculateResult(a: Boolean, b: Boolean, c: Boolean): Boolean {

    val result = a && (b || (!c && a))
    return result
}
/**
 * In this exercise, you need to determine the result of a complex logical expression involving short-circuiting and precedence of logical operators.
 *
 * Given three variables: a, b, and c, each representing a boolean value, you need to calculate the result of the following expression:
 *
 * a and (b or (not c and a))
 *
 * Use short-circuiting and the precedence of logical operators to make the calculation more efficient.
 *
 * Return the final result of the expression.
 */
fun calculateResult(a: Boolean, b: Boolean, c: Boolean): Boolean {
/**
 * In this exercise, you need to determine the result of a complex logical expression involving short-circuiting and precedence of logical operators.
 *
 * Given three variables: a, b, and c, each representing a boolean value, you need to calculate the result of the following expression:
 *
 * a and (b or (not c and a))
 *
 * Use short-circuiting and the precedence of logical operators to make the calculation more efficient.
 *
 * Return the final result of the expression.
 */
fun calculateResult(a: Boolean, b: Boolean, c: Boolean): Boolean {

    val result = a && (b || (!c && a))
    return result
}