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.
- Get Free Certificate of Merit in C# Programming
- Participate in C# Programming Certification Contest
- Become a Top Ranker in C# Programming
- Take C# Programming Tests
- Chapterwise Practice Tests: Chapter 1, 2, 3, 4, 5, 6, 7, 8, 9, 10
- Chapterwise Mock Tests: Chapter 1, 2, 3, 4, 5, 6, 7, 8, 9, 10
- Apply for Computer Science Internship
- Buy MCA Books
- Buy Computer Science Books
- Apply for C# Internship
- Buy C# Books