LOOPS
TYPES
DO LOOP
DO WHILE
DO UNTIL
FOR NEXT
WHILE
WEND
DO LOOP
DO WHILE
DO UNTIL
ARRAYS
 Array is a set of element of the same datatype represented by a
single variable name.
 Each element of an array has a unique identifying index
number which is used for assessing the elements.
DECLARING AN ARRAY:
SYNTAX: Dim array name (array size) [as datatype]
FLOW CHART OF ARRAY
TYPES OF ARRAY
• Has only one index or subscript.
• It is like a list of items that consists of one
rows and one column of item.
• Syntax: Dim array name (array size) as
datatype
ONE
DIMENSIONAL
• Have higher dimensions.
• N-dimensional array can have n
dimensions.
• Syntax: Dim array name (index1,
index2 – index n) as datatype
MULTI-
DIMENSIONAL
STATIC
DYNAMIC
• Size always remain
the same.
• Its size and
dimensions are
specified with its
declaration.
• Size can be
changed at run-
time.
TYPES Cont..
Loops and arrays

Loops and arrays

  • 2.
    LOOPS TYPES DO LOOP DO WHILE DOUNTIL FOR NEXT WHILE WEND
  • 3.
  • 4.
  • 5.
  • 7.
    ARRAYS  Array isa set of element of the same datatype represented by a single variable name.  Each element of an array has a unique identifying index number which is used for assessing the elements. DECLARING AN ARRAY: SYNTAX: Dim array name (array size) [as datatype]
  • 8.
  • 10.
    TYPES OF ARRAY •Has only one index or subscript. • It is like a list of items that consists of one rows and one column of item. • Syntax: Dim array name (array size) as datatype ONE DIMENSIONAL • Have higher dimensions. • N-dimensional array can have n dimensions. • Syntax: Dim array name (index1, index2 – index n) as datatype MULTI- DIMENSIONAL
  • 11.
    STATIC DYNAMIC • Size alwaysremain the same. • Its size and dimensions are specified with its declaration. • Size can be changed at run- time. TYPES Cont..