C# is a popular programming language developed by Microsoft. It was designed to be modern, simple, and object-oriented. Here are some basics of C#:

1. Hello World program:
“`
using System;

class Program
{
static void Main(string[] args)
{
Console.WriteLine(“Hello World!”);
}
}
“`
In C#, the program starts with the `Main` method, which is the entry point of the program. `Console.WriteLine` is used to print “Hello World!” to the console.

2. Variables and Data Types:
C# has several built-in data types, such as `int`, `float`, `string`, `bool`, etc.

“`csharp
int myInt = 10;
float myFloat = 3.14f;
string myString = “Hello”;
bool myBool = true;
“`

3. Conditional Statements:
C# provides `if-else` and `switch` statements for decision-making.

“`csharp
int age = 20;

if (age < 18) { Console.WriteLine("You are a minor."); } else if (age >= 18 && age < 65) { Console.WriteLine("You are an adult."); } else { Console.WriteLine("You are a senior citizen."); } ``` 4. Loops: C# has `for`, `while`, and `do-while` loops for repetitive tasks. ```csharp for (int i = 0; i < 10; i++) { Console.WriteLine(i); } int counter = 0; while (counter < 5) { Console.WriteLine(counter); counter++; } int num = 0; do { Console.WriteLine(num); num++; } while (num < 5); ``` 5. Functions: C# uses functions for code reusability and modularity. ```csharp int Add(int num1, int num2) { return num1 + num2; } int result = Add(5, 3); Console.WriteLine(result); ``` These are just some of the basics of C#. As you learn more, you will discover more advanced concepts like classes, inheritance, interfaces, exception handling, and more.