Lecture 2
Lecture 2
Eng SN Niles
Department of Textile & Clothing Technology
University of Moratuwa
Learning Outcomes
At the end of this module you should have an
understanding of:
variables and their declaration and use
data types and their conversion.
A variable is a named item that can store a
value.
It refers to a temporary memory location
where a changeable data value may be
stored.
To use a variable we need to declare it and
then assign a value.
Variable Declaration
+ Addition
– Subtraction
Concatenation Operators
&