Artificial intelligence in the post-deep learning era
Do...until loop structure
1.
2. At the end of this Presentation, you
should be able to:
1. Define a Do…Until Loop Structure
2. Construct the syntax of Do…Until
Loop Structure
3. Do…Until Loop Structure
• The Do … Until is used to execute a
block of statements in an unspecified
number of times until a condition
becomes True. If condition is true on
the first pass, the statements are not
executed
5. Do…Until Loop Structure Example
A program that will subtract 2 to 30 until
it reaches 20.
Dim Number as Integer
Number=30
Do until Number<=20
Number =Number-2
Print Number
Loop