var varName = test123
// a ..... var be like
// string (text) /
string name = "Joe";
// int (number) /
int age = 12;
// boolean (true or false) /
bool correct = false;
bool you_are_watching_this = true;
// float (decimal number)
float d_num = 3.5f //must be a "f" if setting it anywhere else
/* There is ALOT of Variable types
out there but the important ones
are these */
/*var*/ var MyVar = 5;
/*static*/ public static int MyStatic;
/*const*/ public const int I = 1;
/*reandoly*/ reandoly string MyString(this is an example);
// a ..... var be like
// string (text) /
string name = "Joe";
// int (number) /
int age = 12;
// boolean (true or false) /
bool correct = false;
bool you_are_watching_this = true;
// float (decimal number)
float d_num = 3.5f //must be a "f" if setting it anywhere else
/* There is ALOT of Variable types
out there but the important ones
are these */
string characterName = "Tom";
int characterAge = 23;
Console.WriteLine("Variables");
Console.WriteLine("There was a guy named " + characterName);
Console.WriteLine("He was " + characterAge + " years old");
Console.ReadLine();
// Here are three types of variables on C#
int (Name Of Variable);
// The int is the classic variable holding numbers and letter.
float (Name Of Variable);
// A float holds number up to 9.99*10 to the 32 power
bool (Name Of Variable);
// A bool holds True or False (simple)
/*int*/int myNum = 5;
/*doube*/ double myDoubleNum = 5.99D;
/*char*/ char myLetter = 'D';
/*bool*/ bool myBool = true;
/*string*/ string myText = "Hello";
/*var*/ var myVar = "newewewewewewewewewe"