×
×
Correct!
Fill in the missing part to create an if..else expression:
val time = 20
@(3) @(8) = @(2) (time < 18) {
"Good day."
} else {
"Good evening."
}
println(greeting)
val time = 20
val greeting = if (time < 18) {
"Good day."
} else {
"Good evening."
}
println(greeting)
Not CorrectClick here to try again. Correct! |
This will reset the score of ALL 39 exercises.
Are you sure you want to continue?