Lesson 7
50 XP

Data Types

What are Data Types?

Data types tell C# what kind of information a variable will store. Each type is designed for a specific purpose!

🔢

int

Whole numbers

-2, -1, 0, 1, 100
💯

double

Decimal numbers

3.14, 19.99, -5.5
📝

string

Text (words)

"Hello", "C#"

bool

True or False

true, false
🔤

char

Single character

'A', 'x', '5'