C# Program to Print Hello World Without Using WriteLine method

using System;

using System.Collections.Generic;

using System.Linq;

using System.Text;

using System.Threading;

using System.Threading.Tasks;

using System.Xml;


namespace ConsoleApp

{

    class Program

    {

        static void Main(string[] args)

        {

            if (Console.OpenStandardOutput().BeginWrite(new byte[] {

        072, 101, 108, 108, 111, 032, 087, 111, 114, 108, 100, 0 },

                0, 12, null, null).AsyncWaitHandle.WaitOne())

            {

            }

            Console.ReadKey();

        }

    }

}


Output:-

Hello World


एक टिप्पणी भेजें

0 टिप्पणियाँ