- Trending Categories
Data Structure
Networking
RDBMS
Operating System
Java
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
Physics
Chemistry
Biology
Mathematics
English
Economics
Psychology
Social Studies
Fashion Studies
Legal Studies
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
How to 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");
- Related Articles
- How to write "Hello World" Program in C++?
- How to write "Hello, World!" program in JavaScript?
- C++ "Hello, World!" Program
- How to write first Hello World program using CGI programming in Python?
- Write a program to display "Hello World" in react native?
- Print Hello World without semicolon in C++
- How to create Android Hello World App?
- How to print "Hello World!" using Python?
- Beginning C# programming with Hello World
- Hello World Program in Java
- Hello World in Dart Programming
- Hello World program in Kotlin
- Hello World using Perl.
- Python Program to Print Hello world
- Print “Hello World” in C/C++ without using header files

Advertisements