Kotlinlearncs.online LogoJava
Return to List

Solve: Print Without a Newline

Created By: Geoffrey Challen
/ Version: 2026.8.0

println does two things: it prints your message, and then it moves to the next line. Sometimes you only want the first part. print prints the message and leaves the cursor exactly where it is, so whatever you print next continues on the same line.

Write a snippet of code—not a function—that prints CS 124 without moving to the next line afterward. Your output should be those six characters and nothing else—in particular, it should not end with a newline.

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-without-a-newline/[email protected]