Console.WriteLine()
noun
say it: “KON-sohl RYTE-lyne” /ˈkɒnsoʊl ˈraɪtlaɪn/
The C# method that prints a value in the terminal and then moves to a new line.
What does Console.WriteLine() do in C#?
Console.WriteLine() — A method that prints a value followed by a new line.
class Program
{
static void Main()
{
Console.WriteLine("Hello, C#!"); // Hello, C#!
}
}
In a sentence
- “I used Console.WriteLine to print each team's score on its own line.”
Level: Novice · More C# terms at this level
Updated