Core C#

Simple Output

This C# program demonstrates how to print a simple message to the console window. Note that each WriteLine command outputs single line of text.

Program.cs

using System;

namespace XoaX {
    class Program {
        static void Main(string[] args) {
            Console.WriteLine("Love righteousness, you rulers of the earth,");
            Console.WriteLine("think of the Lord with uprightness,");
            Console.WriteLine("and seek him with sincerity of heart.");
            Console.WriteLine("(Wisdom 1:1)");
        }
    }
}
 

Output

Love righteousness, you rulers of the earth,
think of the Lord with uprightness,
and seek him with sincerity of heart.
(Wisdom 1:1)
Press any key to continue . . .
 
 

© 2007–2024 XoaX.net LLC. All rights reserved.