SlideShare a Scribd company logo
1 of 12
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

More Related Content

What's hot

What's hot (20)

Arrays
ArraysArrays
Arrays
 
Dsa unit 1
Dsa unit 1Dsa unit 1
Dsa unit 1
 
Javascript ADT - List
Javascript   ADT - ListJavascript   ADT - List
Javascript ADT - List
 
Arrays declartion and initialization
Arrays declartion and initializationArrays declartion and initialization
Arrays declartion and initialization
 
Arrays in C
Arrays in CArrays in C
Arrays in C
 
Data structures2
Data structures2Data structures2
Data structures2
 
Arrays in C++
Arrays in C++Arrays in C++
Arrays in C++
 
Collections (1)
Collections (1)Collections (1)
Collections (1)
 
One Dimentional Array
One Dimentional ArrayOne Dimentional Array
One Dimentional Array
 
Types of Arrays
Types of ArraysTypes of Arrays
Types of Arrays
 
Ppt on arrays in c
Ppt on arrays in cPpt on arrays in c
Ppt on arrays in c
 
Data handling in python
Data handling in pythonData handling in python
Data handling in python
 
Pandas
PandasPandas
Pandas
 
Data structures list
Data structures listData structures list
Data structures list
 
Data structure day1
Data structure day1Data structure day1
Data structure day1
 
Arrays accessing using for loops
Arrays accessing using for loopsArrays accessing using for loops
Arrays accessing using for loops
 
Data structure
Data structureData structure
Data structure
 
R data-structures-3
R data-structures-3R data-structures-3
R data-structures-3
 
Chapter 6 java
Chapter 6 javaChapter 6 java
Chapter 6 java
 
R Data Structures (Part 1)
R Data Structures (Part 1)R Data Structures (Part 1)
R Data Structures (Part 1)
 

Viewers also liked

"Uso de comandos INSERT, UPDATE y DELETE en bases de datos de SQL Server"
"Uso de comandos INSERT, UPDATE y DELETE en bases de datos de SQL Server""Uso de comandos INSERT, UPDATE y DELETE en bases de datos de SQL Server"
"Uso de comandos INSERT, UPDATE y DELETE en bases de datos de SQL Server"
pacovar
 

Viewers also liked (11)

Creación Indices y Constraints en Bases de Datos de SQL Server
Creación Indices y Constraints en Bases de Datos de SQL ServerCreación Indices y Constraints en Bases de Datos de SQL Server
Creación Indices y Constraints en Bases de Datos de SQL Server
 
Mule Cloud Connectors-Autorizando el conector
Mule Cloud Connectors-Autorizando el conectorMule Cloud Connectors-Autorizando el conector
Mule Cloud Connectors-Autorizando el conector
 
Singapore Market Entry Strategies Presentation
Singapore Market Entry Strategies Presentation  Singapore Market Entry Strategies Presentation
Singapore Market Entry Strategies Presentation
 
Concurso # 018 2016
Concurso # 018 2016Concurso # 018 2016
Concurso # 018 2016
 
Welcome to the northridge middle 2
Welcome to the northridge middle 2Welcome to the northridge middle 2
Welcome to the northridge middle 2
 
Concurso # 016 2016
Concurso # 016 2016Concurso # 016 2016
Concurso # 016 2016
 
"Uso de comandos INSERT, UPDATE y DELETE en bases de datos de SQL Server"
"Uso de comandos INSERT, UPDATE y DELETE en bases de datos de SQL Server""Uso de comandos INSERT, UPDATE y DELETE en bases de datos de SQL Server"
"Uso de comandos INSERT, UPDATE y DELETE en bases de datos de SQL Server"
 
Datatype in c++ unit 3 -topic 2
Datatype in c++ unit 3 -topic 2Datatype in c++ unit 3 -topic 2
Datatype in c++ unit 3 -topic 2
 
Oop project briefing sem 1 2015 2016
Oop project briefing  sem 1 2015 2016Oop project briefing  sem 1 2015 2016
Oop project briefing sem 1 2015 2016
 
Genetic epistomology: An Exclusive Presentation
Genetic epistomology: An Exclusive PresentationGenetic epistomology: An Exclusive Presentation
Genetic epistomology: An Exclusive Presentation
 
Air pollution : causes, effects and solutions of air pollution.
Air pollution : causes, effects and solutions of air pollution.Air pollution : causes, effects and solutions of air pollution.
Air pollution : causes, effects and solutions of air pollution.
 

Similar to Loops and arrays

BHARGAVIARRAY.PPT.pptx
BHARGAVIARRAY.PPT.pptxBHARGAVIARRAY.PPT.pptx
BHARGAVIARRAY.PPT.pptx
Sasideepa
 

Similar to Loops and arrays (20)

R data types
R data typesR data types
R data types
 
java.pdf
java.pdfjava.pdf
java.pdf
 
Arrays In C++
Arrays In C++Arrays In C++
Arrays In C++
 
Array ppt
Array pptArray ppt
Array ppt
 
Array.pdf
Array.pdfArray.pdf
Array.pdf
 
Array
ArrayArray
Array
 
ARRAY.pptx
ARRAY.pptxARRAY.pptx
ARRAY.pptx
 
ARRAYS.pptx
ARRAYS.pptxARRAYS.pptx
ARRAYS.pptx
 
Arrays in Reading.pptx
Arrays in Reading.pptxArrays in Reading.pptx
Arrays in Reading.pptx
 
arrayppt.pptx
arrayppt.pptxarrayppt.pptx
arrayppt.pptx
 
Arrays
ArraysArrays
Arrays
 
Lesson 11 one dimensional array
Lesson 11 one dimensional arrayLesson 11 one dimensional array
Lesson 11 one dimensional array
 
Arrays in Data Structure and Algorithm
Arrays in Data Structure and Algorithm Arrays in Data Structure and Algorithm
Arrays in Data Structure and Algorithm
 
Introduction to c converted-converted
Introduction to c converted-convertedIntroduction to c converted-converted
Introduction to c converted-converted
 
Array.ppt
Array.pptArray.ppt
Array.ppt
 
array.ppt
array.pptarray.ppt
array.ppt
 
Array
ArrayArray
Array
 
BHARGAVIARRAY.PPT.pptx
BHARGAVIARRAY.PPT.pptxBHARGAVIARRAY.PPT.pptx
BHARGAVIARRAY.PPT.pptx
 
September 9 2008
September 9 2008September 9 2008
September 9 2008
 
Arrays
ArraysArrays
Arrays
 

Recently uploaded

Transparency, Recognition and the role of eSealing - Ildiko Mazar and Koen No...
Transparency, Recognition and the role of eSealing - Ildiko Mazar and Koen No...Transparency, Recognition and the role of eSealing - Ildiko Mazar and Koen No...
Transparency, Recognition and the role of eSealing - Ildiko Mazar and Koen No...
EADTU
 
Contoh Aksi Nyata Refleksi Diri ( NUR ).pdf
Contoh Aksi Nyata Refleksi Diri ( NUR ).pdfContoh Aksi Nyata Refleksi Diri ( NUR ).pdf
Contoh Aksi Nyata Refleksi Diri ( NUR ).pdf
cupulin
 
Spellings Wk 4 and Wk 5 for Grade 4 at CAPS
Spellings Wk 4 and Wk 5 for Grade 4 at CAPSSpellings Wk 4 and Wk 5 for Grade 4 at CAPS
Spellings Wk 4 and Wk 5 for Grade 4 at CAPS
AnaAcapella
 
SURVEY I created for uni project research
SURVEY I created for uni project researchSURVEY I created for uni project research
SURVEY I created for uni project research
CaitlinCummins3
 
MuleSoft Integration with AWS Textract | Calling AWS Textract API |AWS - Clou...
MuleSoft Integration with AWS Textract | Calling AWS Textract API |AWS - Clou...MuleSoft Integration with AWS Textract | Calling AWS Textract API |AWS - Clou...
MuleSoft Integration with AWS Textract | Calling AWS Textract API |AWS - Clou...
MysoreMuleSoftMeetup
 
Personalisation of Education by AI and Big Data - Lourdes Guàrdia
Personalisation of Education by AI and Big Data - Lourdes GuàrdiaPersonalisation of Education by AI and Big Data - Lourdes Guàrdia
Personalisation of Education by AI and Big Data - Lourdes Guàrdia
EADTU
 
會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文
會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文
會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文
中 央社
 
SPLICE Working Group: Reusable Code Examples
SPLICE Working Group:Reusable Code ExamplesSPLICE Working Group:Reusable Code Examples
SPLICE Working Group: Reusable Code Examples
Peter Brusilovsky
 

Recently uploaded (20)

Transparency, Recognition and the role of eSealing - Ildiko Mazar and Koen No...
Transparency, Recognition and the role of eSealing - Ildiko Mazar and Koen No...Transparency, Recognition and the role of eSealing - Ildiko Mazar and Koen No...
Transparency, Recognition and the role of eSealing - Ildiko Mazar and Koen No...
 
Spring gala 2024 photo slideshow - Celebrating School-Community Partnerships
Spring gala 2024 photo slideshow - Celebrating School-Community PartnershipsSpring gala 2024 photo slideshow - Celebrating School-Community Partnerships
Spring gala 2024 photo slideshow - Celebrating School-Community Partnerships
 
ESSENTIAL of (CS/IT/IS) class 07 (Networks)
ESSENTIAL of (CS/IT/IS) class 07 (Networks)ESSENTIAL of (CS/IT/IS) class 07 (Networks)
ESSENTIAL of (CS/IT/IS) class 07 (Networks)
 
Mattingly "AI and Prompt Design: LLMs with NER"
Mattingly "AI and Prompt Design: LLMs with NER"Mattingly "AI and Prompt Design: LLMs with NER"
Mattingly "AI and Prompt Design: LLMs with NER"
 
Contoh Aksi Nyata Refleksi Diri ( NUR ).pdf
Contoh Aksi Nyata Refleksi Diri ( NUR ).pdfContoh Aksi Nyata Refleksi Diri ( NUR ).pdf
Contoh Aksi Nyata Refleksi Diri ( NUR ).pdf
 
Andreas Schleicher presents at the launch of What does child empowerment mean...
Andreas Schleicher presents at the launch of What does child empowerment mean...Andreas Schleicher presents at the launch of What does child empowerment mean...
Andreas Schleicher presents at the launch of What does child empowerment mean...
 
Spellings Wk 4 and Wk 5 for Grade 4 at CAPS
Spellings Wk 4 and Wk 5 for Grade 4 at CAPSSpellings Wk 4 and Wk 5 for Grade 4 at CAPS
Spellings Wk 4 and Wk 5 for Grade 4 at CAPS
 
VAMOS CUIDAR DO NOSSO PLANETA! .
VAMOS CUIDAR DO NOSSO PLANETA!                    .VAMOS CUIDAR DO NOSSO PLANETA!                    .
VAMOS CUIDAR DO NOSSO PLANETA! .
 
Observing-Correct-Grammar-in-Making-Definitions.pptx
Observing-Correct-Grammar-in-Making-Definitions.pptxObserving-Correct-Grammar-in-Making-Definitions.pptx
Observing-Correct-Grammar-in-Making-Definitions.pptx
 
Supporting Newcomer Multilingual Learners
Supporting Newcomer  Multilingual LearnersSupporting Newcomer  Multilingual Learners
Supporting Newcomer Multilingual Learners
 
male presentation...pdf.................
male presentation...pdf.................male presentation...pdf.................
male presentation...pdf.................
 
SURVEY I created for uni project research
SURVEY I created for uni project researchSURVEY I created for uni project research
SURVEY I created for uni project research
 
MuleSoft Integration with AWS Textract | Calling AWS Textract API |AWS - Clou...
MuleSoft Integration with AWS Textract | Calling AWS Textract API |AWS - Clou...MuleSoft Integration with AWS Textract | Calling AWS Textract API |AWS - Clou...
MuleSoft Integration with AWS Textract | Calling AWS Textract API |AWS - Clou...
 
An overview of the various scriptures in Hinduism
An overview of the various scriptures in HinduismAn overview of the various scriptures in Hinduism
An overview of the various scriptures in Hinduism
 
Graduate Outcomes Presentation Slides - English (v3).pptx
Graduate Outcomes Presentation Slides - English (v3).pptxGraduate Outcomes Presentation Slides - English (v3).pptx
Graduate Outcomes Presentation Slides - English (v3).pptx
 
How to Manage Website in Odoo 17 Studio App.pptx
How to Manage Website in Odoo 17 Studio App.pptxHow to Manage Website in Odoo 17 Studio App.pptx
How to Manage Website in Odoo 17 Studio App.pptx
 
Personalisation of Education by AI and Big Data - Lourdes Guàrdia
Personalisation of Education by AI and Big Data - Lourdes GuàrdiaPersonalisation of Education by AI and Big Data - Lourdes Guàrdia
Personalisation of Education by AI and Big Data - Lourdes Guàrdia
 
會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文
會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文
會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文
 
SPLICE Working Group: Reusable Code Examples
SPLICE Working Group:Reusable Code ExamplesSPLICE Working Group:Reusable Code Examples
SPLICE Working Group: Reusable Code Examples
 
AIM of Education-Teachers Training-2024.ppt
AIM of Education-Teachers Training-2024.pptAIM of Education-Teachers Training-2024.ppt
AIM of Education-Teachers Training-2024.ppt
 

Loops and arrays

  • 1.
  • 2. LOOPS TYPES DO LOOP DO WHILE DO UNTIL FOR NEXT WHILE WEND
  • 6.
  • 7. 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]
  • 9.
  • 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 always remain the same. • Its size and dimensions are specified with its declaration. • Size can be changed at run- time. TYPES Cont..