Kotlinlearncs.online LogoJava
Return to List

Solve: Print That Number

Created By: Geoffrey Challen
/ Version: 2026.8.0

You can hand println more than just text. Give it an Int and it prints whatever number that variable is holding at the moment—which is far more useful than printing a message that never changes.

Assuming an Int variable named value has been declared and initialized, write a snippet of code—not a function—that prints value on a line by itself. Don't print any other text, and don't modify value.

Related Lessons

Stuck? You may find these lessons helpful:

Report a Problem

Attribution must link to this page: https://www.learncs.online/solve/kotlin/print-that-number/[email protected]