C# Program to Print Hello World Without Using WriteLine Last Updated : 01 Nov, 2021 Comments Improve Suggest changes Like Article Like Report Hello World program is the most basic program of any programming language. It prints "Hello world" on the screen. In this article, we will display "Hello World" without using WriteLine Method. So to do this task we use the following methods: Console.OpenStandardOutput(): This method is used to acquire the standard output stream.Console.ReadKey(): This method is used to get the next character pressed by the user and this press key will be displayed in the console window.BeginWrite(): This method is used to begin an asynchronous write operation.AsyncWaitHandle.WaitOne(): This method is used to wait for an asynchronous operation to complete.For writing Hello World we are taking each separate character in ASCII format and then we are displaying these characters together. StringHello WorldASCII Code721011081081113287111114108100Approach 1. Inside if condition, Write OpenStandardOutput() to display the Hello World. 2. This method is followed by BeginWrite() method that takes integer Bytes. BeginWrite(new byte[] { 072, 101, 108, 108, 111, 032, 087, 111, 114, 108, 100, 0 }, 0, 12, null, null) 3. Finally we are using AsyncWaitHandle.WaitOne() method followed by BeginWrite() method. BeginWrite(new byte[] { 072, 101, 108, 108, 111, 032, 087, 111, 114, 108, 100, 0 }, 0, 12, null, null).AsyncWaitHandle.WaitOne()) Example: C# // C# program to display Hello World without // using WriteLine() method using System; class GFG{ static void Main(string[] args) { // ASCII values for Hello World if (System.Console.OpenStandardOutput().BeginWrite(new byte[] { 072, 101, 108, 108, 111, 032, 087, 111, 114, 108, 100, 0 }, 0, 12, null, null).AsyncWaitHandle.WaitOne()) { } } } Output: Hello World Comment More infoAdvertise with us Next Article C# Program to Print Hello World Without Using WriteLine gottumukkala_sivanagulu Follow Improve Article Tags : C# CSharp-programs Similar Reads Bash Script - Write Hello World Program In this article, we are going to see how to write "hello world" program in Bash script. The bash script is a text file that contains a set of instructions ( i.e. codes or commands ) that can be executed in the terminal. In any programming language, the first program that we learn to write is " Hello 2 min read Rust - Hello World Program Every programmer starts their programming journey with a simple "Hello World!" program. In this article, we will write our first "Hello World!" Rust program. If you have not yet installed Rust on your system, please go through the link and install it. In this article we will be working on the follow 3 min read Hello World Program : First program while learning Programming In this article, I'll show you how to create your first Hello World computer program in various languages. Along with the program, comments are provided to help you better understand the terms and keywords used in theLearning program. Programming can be simplified as follows: Write the program in a 6 min read C++ Program to Print Your Own Name Printing your own name means displaying your name on the computer screen. In this article, we will learn how to print your own name using a C++ program.ExamplesInput: name = "Anmol"Output: AnmolExplanation: Given name is printed on the output screen.Input: name = "Alex"Output: AlexExplanation: Given 3 min read How to Run C program in Ubuntu Learning to run a C program in Ubuntu is a great first step for anyone starting their programming journey or switching to a Linux-based system. Ubuntu offers a clean and powerful environment to write, compile, and execute C code all from the terminal.In C, this guide will show you how to get started 4 min read Write an R Program for "Hello Geeks" Hello, Geeks is the first basic program in any programming language. Letâs write the program in R programming language. All one needs to do is display the message âHello Worldâ on the screen. Letâs look at the program: R Program to Print âHello Geeksâ using the print() function:The following R progr 2 min read How to Hide the Console Window of a C Program? The task is to hide the console window of a C program. The program for the same is given below. Note: The results of the following program can only be seen when it is executed on a console. C // C program to hide the console window #include <stdio.h> #include <windows.h> int main() { HW 2 min read C++ Wait for User Input Waiting for User input is common functionality in any program requiring some form of user intervention. Whether it is halting the execution to see the output produced, or is it for taking in user input, halting the execution for input is one of the most common tasks that are performed by a program. 4 min read How to print or output a String? In this article, we are going to learn how to print or output a string using different languages. Strings are considered a data type in general and are typically represented as arrays of bytes (or words) that store a sequence of characters. Strings are defined as an array of characters. Topics: Lang 3 min read How to Concatenate Multiple Strings in C? In C, concatenating strings means joining two or more strings end-to-end to form a new string. In this article, we will learn how to concatenate multiple strings in C. Example: Input:char str1[50] = "Hello";char str2[50] = " geeksforgeeks";Output:Hello geeksforgeeks!Concatenating Strings in CTo conc 1 min read Like