
Creating Hello World Program
A C# program consists of the following parts −
- Namespace declaration
- A class
- Class methods
- Class attributes
- A Main method
- Statements and Expressions
- Comments
Let us look at a simple code that prints the words "Hello World" −