logo

Crowdly

Browser

Add to Chrome

Що виведе виклик функції visitTavern і чи скомпілюється код?   privat...

✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.

Що виведе

виклик функції

visitTavern і чи скомпілюється код?

 

private val

firstNames = setOf("Alex", "Mordoc", "Sophie",

"Tariq")

private val

lastNames = setOf("Ironfoot", "Fernsworth",

"Baggins", "Downstrider")

 

fun visitTavern

()

{

    var patrons: Set<String> = setOf()

    repeat(10) {

        patrons += "${firstNames.random()}

${lastNames.random()}"

    }

 

    println("There are several patrons in

the tavern:")

    println(patrons)

}

More questions like this

Want instant access to all verified answers on vns.lpnu.ua?

Get Unlimited Answers To Exam Questions - Install Crowdly Extension Now!

Browser

Add to Chrome