Console.Write()
A free lesson from Swipe Coding · C#, level 2 · updated October 2026
By the Swipe team, founded by Colin · how we make lessons
Besides Console.WriteLine(), there is also Console.Write(). It works almost the same way, but with one important difference: Write() does NOT move to a new line afterward.
Console.Write("Hello");
Console.Write("World");
// Output:
// HelloWorldThat is the key difference from WriteLine(): after Write(), the cursor stays exactly where the text ends, and the next output is appended directly after it.
Console.Write("A");
Console.WriteLine("B");
Console.Write("C");
// Output:
// AB
// CWhat does this code output?
Console.Write("X");
Console.WriteLine("Y");
Console.Write("Z");Write() is handy when you want to build a single line of output from several separate calls. Just remember: you have to add any spaces yourself — Write() never adds one for you.
Console.Write("C# ");
Console.Write("is ");
Console.Write("fun!");
// Output:
// C# is fun!Console.Write() outputs text but does not add a ____ afterward.
After Console.Write("Hi"); the next output automatically begins on a new line.
What is the main difference between Console.Write() and Console.WriteLine()?
Keep your streak going in Swipe Coding
Swipe through every level of C# on your iPhone — with XP, stars, streaks, a personal advisor and the full track beyond these free levels.
Get the Swipe apps →