October 2025
Intermediate to advanced
100 pages
2h 27m
English
| Puzzle 19 | It’s Just an Expression |
| | fun main() { |
| | makeEspresso() |
| | makeLatte() |
| | println("Coffee time!") |
| | } |
| | |
| | fun makeEspresso() = |
| | println("Brewing a shot of espresso") |
| | |
| | fun makeLatte() = { |
| | println("Brewing a shot of espresso") |
| | println("Adding some steamed milk") |
| | } |
Guess the Output | |
|---|---|
|
|
Try to guess the output (or error) before moving to the next page. |
The program displays the following output:
| | Brewing a shot of espresso |
| | Coffee time! |
Read now
Unlock full access