C# varibles/ data refrences

vairables text refrences to data. data types refrence numbers and text depending on the vairable used

there are lots of types of data references, all the ones I know are

bool 
Byte
Sbyte
short
ushort
char
float
int
uint
long
ulong
double
decimal
String
dont worry about remembering them all its good that your more familiar with the data types.
Why do we need vairables, it enables us to use data in complex ways.  It will be clear when you need to use them because it will be the logical.

We declare the data type and put a term in a language we understand, "they have to be one long word using underscores like "My_Vairble_Integer_Name"" 

declairing a vairable is easy you just have to know the right way to do it

you put the data type then the name of your data then you put the data. you need to end the data type decleration with a semicolon " ; "

int score = 0;  // score is set to 0

int score; //unassigned variable null void of information the data is set to nothing so addint 1 will set the value to 1

score = score +1;  when the score needs updating you need to add a point to the current score so we say current score + 1 so the new score = the current score + the points


The data refrences in C# programming reference numbers, text, and Unicode characters.

there are separate data type references for numbers with and without a decimal.

uint, byte, ushort, ulong, and can only work with hole numbers

 

whole numbers are good for desplying a changing score for a sports game. or if you want to automaticaly change the stock quantity when your distrabution center sends out products. 

you will need a decimel value when you want to work with numbers that rely on accuracy, fractions or percentage, time and measurements. 

why vairables are so important to us. vairables are so important because they allow us to create complex coding constructs which allow dynamicaly updaiting varying data that wouldnt be possible without them. also they allow us to refrence data preveously used in your project e.g a stock count would have to be manually changed by the admin if not updaiting automaticly

Vairables enable us to comprehend code easier and they allow us to carry out advanced codeing constructs

vairables also help when you have lots or functions relying on the same data.

 

The Start Function runs once at the beginning of the running sequence of the code.

The loop function runs every refresh of the microcontroller in HZ
"Hertz"


You can put variables that are relied on in the start above the start like shown here

bool1bitTrueorFalse =;       /**A Bool or boolian varible is a 1 Bit DataType Vaireable declration of a true or false staitment      absolute true or false staitment if not unassigned void of infomation or e.g "bool Boolian_data_refrence_Varible_Name =;"       and not set true or false "bool Boolian_data_refrence_Varible_Name =TRUE/FALSE;" the varible name is for infomation in text or numbers underscore not using spaces it defines      the use of the data comprehendable to humans in language in the Intergrated development enviroment which will be       shortened when compiled to minamise the amount of used bits boolian a varible that is either a true or false 1 bit True or False data type */