0
Console.WriteLine() is a C# method which prints the information from the C# program to the screen.
See the attached code. If run this code, "Hello, SoloLearner" string will be printed to the screen.
Also there is Console.Write() method. The difference is WriteLine() prints on a new line when Write() continues the same line.
class Program
{
static void Main(string[] args)
{
Console.WriteLine("Hello, SoloLearner!");
Console.WriteLine("New line");
Console.WriteLine("New line again");
Console.Write("The same");
Console.Write(" line");
}
}
https://code.sololearn.com/c3PxVAifc6jS/?ref=app



