/**
 * This function takes in the details of a farm and returns a summary including the name of the farm, its location, area, crops, and animals.
 */
fun farmSummary(farmName: String, farmLocation: String, farmArea: Int, farmCrops: List<String>, farmAnimals: List<String>) {

    println("Farm Summary:")
    println("-------------")
    println("Farm Name: $farmName")
    println("Location: $farmLocation")
    println("Area: $farmArea acres")
    println("Crops: ")

    // Iterating over each crop in the farmCrops list
    for (crop in farmCrops) {
        println("- $crop")
    }

    println("Animals: ")

    // Iterating over each animal in the farmAnimals list
    for (animal in farmAnimals) {
        println("- $animal")
    }

    println("\nEnd of Summary.")
}
/**
 * This function takes in the details of a farm and returns a summary including the name of the farm, its location, area, crops, and animals.
 */
fun farmSummary(farmName: String, farmLocation: String, farmArea: Int, farmCrops: List<String>, farmAnimals: List<String>) {
/**
 * This function takes in the details of a farm and returns a summary including the name of the farm, its location, area, crops, and animals.
 */
fun farmSummary(farmName: String, farmLocation: String, farmArea: Int, farmCrops: List<String>, farmAnimals: List<String>) {

    println("Farm Summary:")
    println("-------------")
    println("Farm Name: $farmName")
    println("Location: $farmLocation")
    println("Area: $farmArea acres")
    println("Crops: ")

    // Iterating over each crop in the farmCrops list
    for (crop in farmCrops) {
        println("- $crop")
    }

    println("Animals: ")

    // Iterating over each animal in the farmAnimals list
    for (animal in farmAnimals) {
        println("- $animal")
    }

    println("\nEnd of Summary.")
}