/**
 * This function takes a base number and an exponent and returns the result of base raised to the power of exponent.
 */
fun exponentiate(base: Double, exponent: Int): Double {

    var result = 1.0
    repeat(exponent) {
        result *= base
    }
    return result
}
/**
 * This function takes a base number and an exponent and returns the result of base raised to the power of exponent.
 */
fun exponentiate(base: Double, exponent: Int): Double {
/**
 * This function takes a base number and an exponent and returns the result of base raised to the power of exponent.
 */
fun exponentiate(base: Double, exponent: Int): Double {

    var result = 1.0
    repeat(exponent) {
        result *= base
    }
    return result
}