✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.
Quelle est la sortie console du programme suivant ?
fun verifier(a: Int) {
require(a in 0..140) { "Age invalide" }
print("OK ")
}
fun main() {
try {
verifier(140)
print("DONE ")
} catch (e: IllegalArgumentException) {
println("ERREUR: ${e.message}")
}
}