✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.
Quelle est la sortie console de ce programme ?
fun afficherInfo(age: Int, nom: String) {
print(">> ")
if (age < 0) {
print("Erreur : âge négatif ! ")
return
}
print("Nom : $nom, ")
print("Age : $age")
}
fun main() {
afficherInfo(0, "Ana")
afficherInfo(-2, "Bob")
}