This is a C# Program to print hello world without using writeLine.
This C# Program Prints Hello World Without using WriteLine.
Here the text is printed without using any writeline functions.
Here is source code of the C# Program to Print Hello World Without using WriteLine. The C# program is successfully compiled and executed with Microsoft Visual Studio. The program output is also shown below.
/* * C# Program to Print Hello World Without using WriteLine */ using System; class Program { static void Main(string[] args) { 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()) { } if (System.Console.ReadKey().Modifiers == 0) { } } }
In this C# Program the Console.OpenStandardOutput Method() is used to Acquires the standard output stream. The Console.ReadKey() method is used to obtain the next character or function key pressed by the user. The pressed key is displayed in the console window. The BeginWrite() method is used to begin an asynchronous write operation. Then print the text without using any writeline functions.
Hello World
Sanfoundry Global Education & Learning Series – 1000 C# Programs.
- Practice Computer Science MCQs
- Apply for C# Internship
- Check Computer Science Books
- Practice MCA MCQs
- Apply for Computer Science Internship