using System;
public class Program
{
public static void Main()
/*
Data types in C#, check link in Canvas for an entire list
Primitive Data Types: Built in data types by the language
Numeric Data Types:
int --> integers, whole numbers
doubles --> floating point number with precision, aka not a whole number and we can have values to the right of the decimal place
==========
Strings Data Types : (are 1 or more characters--alphanumeric and symbols)
string --> 1 or more characters
Boolean Data Type:
bool ---> has the value of: true or false **notice there are no quotes surrounding these values**
^^^^^^^^^^^^^^
VARIABLES
- Variables need to have their data type defined when declared
- They are "named" memory locations
- they can store one and only one value at any point in time
-We can only assign values of the declares data type into the declared variable name
-We must use the assignment operator (=) to assign values to the variable
-Variable names must start with only alpha characters, they can contain numbers
**Variable declarations**
When we declare a variable that means that we are setting aside memory, giving that space a name and data type
int myNumber; <--Declaring a memory location with a name of myNumber and the data type of int
How do we assign a value to a variable...we use the assignment operator: =
How it works: The value on the right of the = is assigned(stored) to(in) the name on the left
myNumber = 10; <---Assigning the value of 10 to the variable myNumber...myNumber after this statement is now 10 until assigned another value
How we change a value assigned to a variable
myNumber = 15; <---The value 10 was now replaced with 15, after this point number will be 15
-----------------
How do we use variables? We use the variable name in the place of where the value needs to be used
Console.WriteLine(10+myNumber); <---this will add 10+15, the name myNumber is replaced with its value in this statement
------
Declaration and initialization
Initialization means that when we declare the variables we go ahead and assign it a value in the statement.
string = myName = "Brianna"; <---Declared and assigned a variable in the "initial" declaration statement
*/
}