/**
 * This function takes three input variables and assigns the division of the first two variables to the third variable.
 * It then returns the value of the third variable if it is not zero, otherwise, returns the result of the division.
 */
fun calculateAndAssign(a: Double, b: Double, c: Double): Double {

    val result = if (c != 0.0) c else a / b
    return result
}
/**
 * This function takes three input variables and assigns the division of the first two variables to the third variable.
 * It then returns the value of the third variable if it is not zero, otherwise, returns the result of the division.
 */
fun calculateAndAssign(a: Double, b: Double, c: Double): Double {
/**
 * This function takes three input variables and assigns the division of the first two variables to the third variable.
 * It then returns the value of the third variable if it is not zero, otherwise, returns the result of the division.
 */
fun calculateAndAssign(a: Double, b: Double, c: Double): Double {

    val result = if (c != 0.0) c else a / b
    return result
}