/**
 * This function calculates the infinite profits for an accountant using the multiplication assignment operator in an
 * infinite while loop.
 *
 * @param startingBalance The initial balance of the accountant's account
 * @param interestRate The interest rate for calculating the profits
 * @return The infinite profits
 */
fun calculateInfiniteProfit(startingBalance: Double, interestRate: Double): Double {

    // Initialize the infinite profits
    var infiniteProfits = startingBalance

    // Start an infinite while loop for calculating profits
    while (true) {
        // Multiply the current balance with the interest rate
        infiniteProfits *= (1 + interestRate)
    }

    return infiniteProfits
}
/**
 * This function calculates the infinite profits for an accountant using the multiplication assignment operator in an
 * infinite while loop.
 *
 * @param startingBalance The initial balance of the accountant's account
 * @param interestRate The interest rate for calculating the profits
 * @return The infinite profits
 */
fun calculateInfiniteProfit(startingBalance: Double, interestRate: Double): Double {
/**
 * This function calculates the infinite profits for an accountant using the multiplication assignment operator in an
 * infinite while loop.
 *
 * @param startingBalance The initial balance of the accountant's account
 * @param interestRate The interest rate for calculating the profits
 * @return The infinite profits
 */
fun calculateInfiniteProfit(startingBalance: Double, interestRate: Double): Double {

    // Initialize the infinite profits
    var infiniteProfits = startingBalance

    // Start an infinite while loop for calculating profits
    while (true) {
        // Multiply the current balance with the interest rate
        infiniteProfits *= (1 + interestRate)
    }

    return infiniteProfits
}