Console.WriteLine do in C#?Console.WriteLine prints text or values to the console and then moves the cursor to the next line.
Console.Write different from Console.WriteLine?Console.Write prints text or values to the console but does NOT move to the next line, so the next output continues on the same line.
Console.Write("Hello");
Console.WriteLine("World");This will print HelloWorld on one line, then move to the next line after printing "World".
Console.WriteLine print variables? How?Yes, you can print variables by passing them inside Console.WriteLine. For example: Console.WriteLine(myVariable); prints the value of myVariable.
Console.WriteLine() with no arguments?It prints an empty line and moves the cursor to the next line, creating a blank line in the console output.
Console.WriteLine prints and then moves to the next line. Console.Write does not move to the next line.
Console.Write("Hi");
Console.Write(" there");Both Console.Write calls print on the same line without moving to the next line.
Calling Console.WriteLine() with no arguments prints a blank line.
Console.WriteLine(variable) prints the variable's value and moves to the next line.
Console.WriteLine("A");
Console.Write("B");
Console.WriteLine("C");First prints "A" and moves to next line, then prints "B" on that line, then prints "C" and moves to next line.