C# is a statically typed programming language, which means that variables must be declared with their data type before they can be used. Here are some common data types in C#:
1. int: Used to store integer values. Example: int num = 10;
2. double: Used to store double-precision floating-point numbers. Example: double num = 3.14;
3. float: Used to store single-precision floating-point numbers. Example: float num = 2.5f;
4. char: Used to store a single character. Example: char letter = ‘A’;
5. string: Used to store a sequence of characters. Example: string name = “John”;
6. bool: Used to store a boolean value (true or false). Example: bool isTrue = true;
7. byte: Used to store an 8-bit unsigned integer. Example: byte num = 255;
8. short: Used to store a 16-bit signed integer. Example: short num = 1000;
9. long: Used to store a 64-bit signed integer. Example: long num = 1000000;
10. decimal: Used to store fixed-point decimal numbers. Example: decimal num = 3.14159m;
In addition to these basic data types, C# also supports user-defined data types such as classes and structures.