Difference between Console.Write and Console.WriteLine in C# Last Updated : 26 May, 2020 Summarize Comments Improve Suggest changes Share Like Article Like Report In C#, to print the data on the console output screen the following method are used - Console.Write() and Console.WriteLine() method. Console is a predefined class of System namespace. While Write() and WriteLine() both are the Console Class methods. The only difference between the Write() and WriteLine() is that Console.Write is used to print data without printing the new line, while Console.WriteLine is used to print data along with printing the new line. Program 1: Example of Console.Write() in C#. C# // C# program to show the difference // between Console.Write and // Console.WriteLine using System; public class GFG{ static void Main(string[] args) { // use of Write() method Console.Write("Geeks"); Console.Write("For"); Console.Write("Geeks"); } } Output: GeeksForGeeks Program 2: Example of Console.WriteLine() in C#. C# // C# program to show the difference // between Console.Write and // Console.WriteLine using System; public class GFG{ static void Main(string[] args) { // use of WriteLine() method Console.WriteLine("Geeks"); Console.WriteLine("For"); Console.WriteLine("Geeks"); } } Output: Geeks For Geeks In the above code, program 1 shows the output without including the newline in the each console output and program 2 shows the output including the newline in the each console output. Comment More infoAdvertise with us Next Article Difference between Console.Write and Console.WriteLine in C# S SHUBHAMSINGH10 Follow Improve Article Tags : Difference Between C# Similar Reads Difference between Console.Read and Console.ReadLine in C# In C#, to take input from the standard input device, the following method are used - Console.Read() and Console.ReadLine() method. Console is a predefined class of System namespace. While Read() and ReadLine() both are the Console Class methods. The only difference between the Read() and ReadLine() 2 min read Difference Between console.dir and console.log Console ObjectThe Console object provides access to the browser's debugging console, which can be seen using F12 or ctrl+shift+j. Console object contains many methods, log() and dir() are the most used among them. Console.log:The console.log() method prints out a toString representation of the objec 2 min read Difference Between console.time and console.timeEnd in JavaScript In JavaScript, console.time and console.timeEnd are powerful tools used for performance measurement. These methods allow developers to measure the time a block of code takes to execute, which is particularly useful for optimizing performance and debugging.Table of ContentWhat is console. time?What i 2 min read Difference between readonly and const keyword in C# In C#, a const keyword is used to declare constant fields and constant local. The value of the constant field is the same throughout the program or in other words, once the constant field is assigned the value of this field is not be changed. In C#, constant fields and locals are not variables, a co 3 min read Difference between String and string in C# String is an alias for System.String class and instead of writing System.String one can use String which is a shorthand for System.String class and is defined in the .NET base class library. The size of the String object in memory is 2GB and this is an immutable object, we can not modify the charact 2 min read Like