using console.writeline in c# class code example Example 1: console.writeline c# Console.WriteLine("Hello, World"); Example 2: console.writeline console.WriteLine