Write is used to output data without adding a newline character, while Writeline adds a newline character after the output
Console.Write("C#");
Console.Write("Programming");
// Output C#Programming
Console.WriteLine("C#");
Console.WriteLine("Programming");
// Output
// C#
// Programming
Komentáře