/**
 * A farmer needs to calculate the total harvest of his crops.
 * The function takes in the number of crops harvested each day and the total days of harvest.
 *
 * @param harvest The number of crops harvested each day.
 * @param crops The total days of harvest.
 * @return The total harvest of crops.
 */
fun farmer(harvest: Int, crops: Int): Int {

    var totalHarvest = 0
    var day = 1

    while (day <= crops) {
        totalHarvest += harvest
        day++
    }

    return totalHarvest
}
/**
 * A farmer needs to calculate the total harvest of his crops.
 * The function takes in the number of crops harvested each day and the total days of harvest.
 *
 * @param harvest The number of crops harvested each day.
 * @param crops The total days of harvest.
 * @return The total harvest of crops.
 */
fun farmer(harvest: Int, crops: Int): Int {
/**
 * A farmer needs to calculate the total harvest of his crops.
 * The function takes in the number of crops harvested each day and the total days of harvest.
 *
 * @param harvest The number of crops harvested each day.
 * @param crops The total days of harvest.
 * @return The total harvest of crops.
 */
fun farmer(harvest: Int, crops: Int): Int {

    var totalHarvest = 0
    var day = 1

    while (day <= crops) {
        totalHarvest += harvest
        day++
    }

    return totalHarvest
}