logo

Crowdly

Browser

Add to Chrome

Quelle est la sortie console de ce programme ? fun afficherInfo(age: Int, nom:...

✅ 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")

}

0%
0%
0%
0%
More questions like this

Want instant access to all verified answers on moodle.iut-tlse3.fr?

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

Browser

Add to Chrome