logo

Crowdly

Browser

Add to Chrome

Quelle est la valeur de x après l'exécution de ce code ? val n = 7 val x = whe...

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

Quelle est la valeur de x après l'exécution de ce code ?

val n = 7

val x = when {

n % 2 == 0 -> n / 2

n > 10 -> n - 5

else -> n * 3

}

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