SlideShare a Scribd company logo
7
Most read
8
Most read
10
Most read
Presented By:

         Name : Abhishek Pachisia
         Course : B.Tech-IT(Sem V)
         Roll No. : 090102801
Made By: Abhishek Pachisia           1
What is VB.NET?

•It is simply Visual Basic for .NET platform developed
by Microsoft.

•It has more components and control than Visual Basic


           Made By: Abhishek Pachisia                    2
Visual Basic loop structures allow to run one or
more lines of code repetitively

Statements in a loop structure can be repeated

   Until a condition is True
   Until a condition is False
   A specified number of times, or
   Once for each element in a collection.
            Made By: Abhishek Pachisia              3
Types of Looping:

There are mainly 3 types of loop:

For Loop

While Loop

Do Loop


            Made By: Abhishek Pachisia   4
• The For loop is the most popular loop.

•For loops enable us to execute a series of expressions
multiple numbers of times.

•Syntax:

        For index=start to end[Step step]
        [statements]
        [Exit For]
        [statements]
        Next[index]

              Made By: Abhishek Pachisia                  5
Example:

    Module Module1

    Sub Main()
    Dim d As Integer
    For d = 0 To 2
    System.Console.WriteLine("In the For Loop")
    Next d
    End Sub

    End Module


           Made By: Abhishek Pachisia             6
•While loop keeps executing until the
condition against which it tests remain true.

•Syntax:

       While condition
      [statements]
      End While


            Made By: Abhishek Pachisia          7
Example:

      Module Module1

       Sub Main()
       Dim d, e As Integer
       d=0
       e=6
       While e > 4
       e -= 1
       d += 1
       End While
       System.Console.WriteLine("The Loop ran " & e &
"times")
       End Sub

      End Module By: Abhishek Pachisia
             Made                                       8
•The Do loop keeps executing it's statements while or until the
condition is true.
•Two keywords, while and until can be used with the do loop.
•The Do loop also supports an Exit Do statement which makes
the loop to exit at any moment.

•Syntax:

       Do[{while | Until} condition]
       [statements]
       [Exit Do]
       [statements]
       Loop

                 Made By: Abhishek Pachisia                       9
Example:

    Module Module1

    Sub Main()
    Dim str As String
    Do Until str = "Cool"
    System.Console.WriteLine("What to do?")
    str = System.Console.ReadLine()
    Loop
    End Sub

    End Module

           Made By: Abhishek Pachisia         10
Made By: Abhishek Pachisia   11

More Related Content

PPTX
Assemblies
Janas Khan
 
PDF
Remote Method Invocation (RMI)
Peter R. Egli
 
PPTX
java interface and packages
VINOTH R
 
PPT
Java Networking
Sunil OS
 
PPT
Database Connection
John Joseph San Juan
 
PDF
Threads concept in java
Muthukumaran Subramanian
 
PPT
Visual Basic menu
kuldeep94
 
PPTX
Types of loops in c language
sneha2494
 
Assemblies
Janas Khan
 
Remote Method Invocation (RMI)
Peter R. Egli
 
java interface and packages
VINOTH R
 
Java Networking
Sunil OS
 
Database Connection
John Joseph San Juan
 
Threads concept in java
Muthukumaran Subramanian
 
Visual Basic menu
kuldeep94
 
Types of loops in c language
sneha2494
 

What's hot (20)

PPTX
Constructor in java
Madishetty Prathibha
 
PDF
Java threads
Prabhakaran V M
 
PPTX
VB Function and procedure
pragya ratan
 
PPTX
Exception handling c++
Jayant Dalvi
 
PPT
Looping statements in Java
Jin Castor
 
PPTX
Semaphore
Arafat Hossan
 
PPT
Php forms
Anne Lee
 
PPT
vb.net Constructor and destructor
suraj pandey
 
PDF
Java programming lab manual
sameer farooq
 
PPTX
Data types in java
HarshitaAshwani
 
PPT
Threads And Synchronization in C#
Rizwan Ali
 
PPTX
Programming in c Arrays
janani thirupathi
 
PPTX
Control structures in c++
Nitin Jawla
 
PPTX
Two dimensional arrays
Neeru Mittal
 
PPTX
Control structures in java
VINOTH R
 
PPTX
Sdi & mdi
BABAVALI S
 
PPTX
Java - Sockets
Riccardo Cardin
 
PPTX
Namespaces in C#
yogita kachve
 
PPT
ADO .Net
DrSonali Vyas
 
Constructor in java
Madishetty Prathibha
 
Java threads
Prabhakaran V M
 
VB Function and procedure
pragya ratan
 
Exception handling c++
Jayant Dalvi
 
Looping statements in Java
Jin Castor
 
Semaphore
Arafat Hossan
 
Php forms
Anne Lee
 
vb.net Constructor and destructor
suraj pandey
 
Java programming lab manual
sameer farooq
 
Data types in java
HarshitaAshwani
 
Threads And Synchronization in C#
Rizwan Ali
 
Programming in c Arrays
janani thirupathi
 
Control structures in c++
Nitin Jawla
 
Two dimensional arrays
Neeru Mittal
 
Control structures in java
VINOTH R
 
Sdi & mdi
BABAVALI S
 
Java - Sockets
Riccardo Cardin
 
Namespaces in C#
yogita kachve
 
ADO .Net
DrSonali Vyas
 
Ad

Similar to Vb.net (loop structure) (20)

PPTX
Looping statements
Jaya Kumari
 
PDF
Do...Loop
Muhammad Al Fatih
 
PPTX
Loop structures chpt_6
cmontanez
 
PPTX
Using loops
nicky_walters
 
PDF
Loops in Visual Basic Programming
Kasun Ranga Wijeweera
 
PPT
Vb (2)
Rajeev Sharan
 
PDF
VB PPT by ADI PART3.pdf
AdiseshaK
 
PDF
VB PPT by ADI PART3.pdf
Prof. Dr. K. Adisesha
 
PPTX
Introduction to VB.NET - UP SITF
John Patrick Oliveros
 
PPTX
LOOPS.pptx Loops in programming language
MobileDev4
 
PPTX
Data structures vb
nicky_walters
 
PPTX
Looping statement in vb.net
ilakkiya
 
PPT
Vb scripting
Brad Winborg
 
PPTX
CONTROL STRUCTURE IN VB
classall
 
PPT
Do,Do while loop .net Visual Basic
manish maurya
 
PPTX
BSc. III Unit iii VB.NET
Ujwala Junghare
 
PPTX
JAN CARL BRIONES-Writing Programs Using Loops.pptx
JanCarlBriones2
 
PPTX
Algorithm
Taimoor Khan
 
PPTX
Advanced VB: Review of the basics
robertbenard
 
PPTX
Advanced VB: Review of the basics
robertbenard
 
Looping statements
Jaya Kumari
 
Loop structures chpt_6
cmontanez
 
Using loops
nicky_walters
 
Loops in Visual Basic Programming
Kasun Ranga Wijeweera
 
VB PPT by ADI PART3.pdf
AdiseshaK
 
VB PPT by ADI PART3.pdf
Prof. Dr. K. Adisesha
 
Introduction to VB.NET - UP SITF
John Patrick Oliveros
 
LOOPS.pptx Loops in programming language
MobileDev4
 
Data structures vb
nicky_walters
 
Looping statement in vb.net
ilakkiya
 
Vb scripting
Brad Winborg
 
CONTROL STRUCTURE IN VB
classall
 
Do,Do while loop .net Visual Basic
manish maurya
 
BSc. III Unit iii VB.NET
Ujwala Junghare
 
JAN CARL BRIONES-Writing Programs Using Loops.pptx
JanCarlBriones2
 
Algorithm
Taimoor Khan
 
Advanced VB: Review of the basics
robertbenard
 
Advanced VB: Review of the basics
robertbenard
 
Ad

More from Abhishek Pachisia (20)

PPTX
Telecom Industry
Abhishek Pachisia
 
PPTX
Strategic alignment model (SAM)
Abhishek Pachisia
 
PPTX
V.G. siddhartha
Abhishek Pachisia
 
PPTX
Boeing- The Frontiers
Abhishek Pachisia
 
PPTX
Top Management of 5 recognized comapanies
Abhishek Pachisia
 
PPTX
Fourier transform
Abhishek Pachisia
 
PPTX
Inference engine
Abhishek Pachisia
 
PPTX
Work breakdown structure
Abhishek Pachisia
 
PPTX
IEEE 802.11
Abhishek Pachisia
 
PPTX
Cloud Service Models
Abhishek Pachisia
 
PPTX
Exception handling in Java
Abhishek Pachisia
 
PPTX
Program Evaluation and Review Technique (PERT)
Abhishek Pachisia
 
PPTX
Hydrogen energy
Abhishek Pachisia
 
PPTX
Rms titanic
Abhishek Pachisia
 
PPTX
Matrix Representation Of Graph
Abhishek Pachisia
 
PPTX
File System Implementation
Abhishek Pachisia
 
PPTX
Exception handling
Abhishek Pachisia
 
Telecom Industry
Abhishek Pachisia
 
Strategic alignment model (SAM)
Abhishek Pachisia
 
V.G. siddhartha
Abhishek Pachisia
 
Boeing- The Frontiers
Abhishek Pachisia
 
Top Management of 5 recognized comapanies
Abhishek Pachisia
 
Fourier transform
Abhishek Pachisia
 
Inference engine
Abhishek Pachisia
 
Work breakdown structure
Abhishek Pachisia
 
IEEE 802.11
Abhishek Pachisia
 
Cloud Service Models
Abhishek Pachisia
 
Exception handling in Java
Abhishek Pachisia
 
Program Evaluation and Review Technique (PERT)
Abhishek Pachisia
 
Hydrogen energy
Abhishek Pachisia
 
Rms titanic
Abhishek Pachisia
 
Matrix Representation Of Graph
Abhishek Pachisia
 
File System Implementation
Abhishek Pachisia
 
Exception handling
Abhishek Pachisia
 

Recently uploaded (20)

PPTX
Tips Management in Odoo 18 POS - Odoo Slides
Celine George
 
PPTX
vedic maths in python:unleasing ancient wisdom with modern code
mistrymuskan14
 
PPTX
IMMUNIZATION PROGRAMME pptx
AneetaSharma15
 
PPTX
Nursing Management of Patients with Disorders of Ear, Nose, and Throat (ENT) ...
RAKESH SAJJAN
 
PPTX
PPTs-The Rise of Empiresghhhhhhhh (1).pptx
academysrusti114
 
PDF
Phylum Arthropoda: Characteristics and Classification, Entomology Lecture
Miraj Khan
 
PDF
PG-BPSDMP 2 TAHUN 2025PG-BPSDMP 2 TAHUN 2025.pdf
AshifaRamadhani
 
PPTX
ACUTE NASOPHARYNGITIS. pptx
AneetaSharma15
 
PPTX
family health care settings home visit - unit 6 - chn 1 - gnm 1st year.pptx
Priyanshu Anand
 
PDF
1.Natural-Resources-and-Their-Use.ppt pdf /8th class social science Exploring...
Sandeep Swamy
 
PPTX
HISTORY COLLECTION FOR PSYCHIATRIC PATIENTS.pptx
PoojaSen20
 
PPTX
Dakar Framework Education For All- 2000(Act)
santoshmohalik1
 
PDF
2.Reshaping-Indias-Political-Map.ppt/pdf/8th class social science Exploring S...
Sandeep Swamy
 
PPTX
An introduction to Dialogue writing.pptx
drsiddhantnagine
 
PDF
The Minister of Tourism, Culture and Creative Arts, Abla Dzifa Gomashie has e...
nservice241
 
PPTX
How to Manage Global Discount in Odoo 18 POS
Celine George
 
PDF
Arihant Class 10 All in One Maths full pdf
sajal kumar
 
PDF
3.The-Rise-of-the-Marathas.pdfppt/pdf/8th class social science Exploring Soci...
Sandeep Swamy
 
PDF
Types of Literary Text: Poetry and Prose
kaelandreabibit
 
PPTX
Open Quiz Monsoon Mind Game Final Set.pptx
Sourav Kr Podder
 
Tips Management in Odoo 18 POS - Odoo Slides
Celine George
 
vedic maths in python:unleasing ancient wisdom with modern code
mistrymuskan14
 
IMMUNIZATION PROGRAMME pptx
AneetaSharma15
 
Nursing Management of Patients with Disorders of Ear, Nose, and Throat (ENT) ...
RAKESH SAJJAN
 
PPTs-The Rise of Empiresghhhhhhhh (1).pptx
academysrusti114
 
Phylum Arthropoda: Characteristics and Classification, Entomology Lecture
Miraj Khan
 
PG-BPSDMP 2 TAHUN 2025PG-BPSDMP 2 TAHUN 2025.pdf
AshifaRamadhani
 
ACUTE NASOPHARYNGITIS. pptx
AneetaSharma15
 
family health care settings home visit - unit 6 - chn 1 - gnm 1st year.pptx
Priyanshu Anand
 
1.Natural-Resources-and-Their-Use.ppt pdf /8th class social science Exploring...
Sandeep Swamy
 
HISTORY COLLECTION FOR PSYCHIATRIC PATIENTS.pptx
PoojaSen20
 
Dakar Framework Education For All- 2000(Act)
santoshmohalik1
 
2.Reshaping-Indias-Political-Map.ppt/pdf/8th class social science Exploring S...
Sandeep Swamy
 
An introduction to Dialogue writing.pptx
drsiddhantnagine
 
The Minister of Tourism, Culture and Creative Arts, Abla Dzifa Gomashie has e...
nservice241
 
How to Manage Global Discount in Odoo 18 POS
Celine George
 
Arihant Class 10 All in One Maths full pdf
sajal kumar
 
3.The-Rise-of-the-Marathas.pdfppt/pdf/8th class social science Exploring Soci...
Sandeep Swamy
 
Types of Literary Text: Poetry and Prose
kaelandreabibit
 
Open Quiz Monsoon Mind Game Final Set.pptx
Sourav Kr Podder
 

Vb.net (loop structure)

  • 1. Presented By: Name : Abhishek Pachisia Course : B.Tech-IT(Sem V) Roll No. : 090102801 Made By: Abhishek Pachisia 1
  • 2. What is VB.NET? •It is simply Visual Basic for .NET platform developed by Microsoft. •It has more components and control than Visual Basic Made By: Abhishek Pachisia 2
  • 3. Visual Basic loop structures allow to run one or more lines of code repetitively Statements in a loop structure can be repeated Until a condition is True Until a condition is False A specified number of times, or Once for each element in a collection. Made By: Abhishek Pachisia 3
  • 4. Types of Looping: There are mainly 3 types of loop: For Loop While Loop Do Loop Made By: Abhishek Pachisia 4
  • 5. • The For loop is the most popular loop. •For loops enable us to execute a series of expressions multiple numbers of times. •Syntax: For index=start to end[Step step] [statements] [Exit For] [statements] Next[index] Made By: Abhishek Pachisia 5
  • 6. Example: Module Module1 Sub Main() Dim d As Integer For d = 0 To 2 System.Console.WriteLine("In the For Loop") Next d End Sub End Module Made By: Abhishek Pachisia 6
  • 7. •While loop keeps executing until the condition against which it tests remain true. •Syntax: While condition [statements] End While Made By: Abhishek Pachisia 7
  • 8. Example: Module Module1 Sub Main() Dim d, e As Integer d=0 e=6 While e > 4 e -= 1 d += 1 End While System.Console.WriteLine("The Loop ran " & e & "times") End Sub End Module By: Abhishek Pachisia Made 8
  • 9. •The Do loop keeps executing it's statements while or until the condition is true. •Two keywords, while and until can be used with the do loop. •The Do loop also supports an Exit Do statement which makes the loop to exit at any moment. •Syntax: Do[{while | Until} condition] [statements] [Exit Do] [statements] Loop Made By: Abhishek Pachisia 9
  • 10. Example: Module Module1 Sub Main() Dim str As String Do Until str = "Cool" System.Console.WriteLine("What to do?") str = System.Console.ReadLine() Loop End Sub End Module Made By: Abhishek Pachisia 10
  • 11. Made By: Abhishek Pachisia 11