C Sharp Variables - chrisbitm/python GitHub Wiki

Declaring variables in C# involves specifying the type of the variable followed by its name, and optionally assigning it an initial value. Here's a quick guide:

int age = 30;
string name = "Alice";
bool isActive = true;
double price = 19.99;
char grade = 'A';

You can also declare Variables without assigning a known Value.

int age;
string name;

name = "Zach"
age = 25

If you need to overwrite a Value, you can do so as well

string name = "Mary"
name = "Chris"

If you know the multiple values of the same data type, you can declare them on one line

int x = 2, y = 1, z = 9