/**
 * The function calculates the total number of eggs produced by the hens and roosters on a farm.
 *
 * @param hens The number of hens on the farm
 * @param roosters The number of roosters on the farm
 * @return The total number of eggs produced
 */
fun calculateTotalEggs(hens: Int, roosters: Int): Int {

    var totalEggs = 0
    for (i in 0 until hens) {
        for (j in 0 until roosters) {
            totalEggs += i * j
        }
    }
    return totalEggs
}
/**
 * The function calculates the total number of eggs produced by the hens and roosters on a farm.
 *
 * @param hens The number of hens on the farm
 * @param roosters The number of roosters on the farm
 * @return The total number of eggs produced
 */
fun calculateTotalEggs(hens: Int, roosters: Int): Int {
/**
 * The function calculates the total number of eggs produced by the hens and roosters on a farm.
 *
 * @param hens The number of hens on the farm
 * @param roosters The number of roosters on the farm
 * @return The total number of eggs produced
 */
fun calculateTotalEggs(hens: Int, roosters: Int): Int {

    var totalEggs = 0
    for (i in 0 until hens) {
        for (j in 0 until roosters) {
            totalEggs += i * j
        }
    }
    return totalEggs
}