34. Meanwhile the installation
progresses we will see…
9/27/2018
Dr.AtifShahzad
• Variables
• DataTypes
– bool,byte,char,double,float,int,long,short,uint,ulong,
ushort
• Program structure and sequence
• Comments,multi-line comments,Good practices
• WriteLine(),Write(),ReadLine(),Read()
• Initialization of variables
• Formatted output
• Your Examples
• Q&A
35. Variable
9/27/2018
Dr.AtifShahzad
• A named area of computer memory.
–think of it as a named box that stores data
(including numbers and text) , for a
program to access as needed.
37. Variable
9/27/2018
Dr.AtifShahzad
When you create
a variable,
your program sets
aside enough memory
to hold the value of
the variable
And tags the allocated
memory with that
variable’s name.
After creating a
variable,
you can use its name
in your program to
refer to the value it
represents.
38. Data type of a variable
Dr.AtifShahzad
38
Data types are sets
(ranges) of values that
have similar
characteristics.