All variables in C# must be declared with a type:
int age;
string name;
bool isOnline;You can assign values during declaration or after:
int age = 25;
string name;
name = "Alice";total ≠ Total)Use const to declare values that never change:
What does this print?
Ask the AI if you need help understanding or want to dive deeper in any topic