
Data Structure
Networking
RDBMS
Operating System
Java
MS Excel
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
Write Hello World in C#
To print “Hello World” in C#, use the Console.WriteLine.
Let us see a basic C# program to display a text −
Example
using System; using System.Collections.Generic; using System.Text; namespace Program { class MyApplication { static void Main(string[] args) { Console.WriteLine("Hello World"); Console.Read(); } } }
Output
Hello World
Above, we displayed the text “Hello World” using the WriteLine() method. The output is displayed using the Console −
Console.WriteLine("Hello World");
Advertisements