DOWHILE structure [solved]

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • rhoshan
    New Member
    • Oct 2006
    • 1

    #1

    DOWHILE structure [solved]

    I need some help in using the DOWHILE Control Structure
  • bartonc
    Recognized Expert Expert
    • Sep 2006
    • 6478

    #2
    Code:
    counter = 10        # Use a know value to test
    while counter > 0:
        print counter    # do your work
        counter -= 1    # decrement the counter (or whatever)
        # use break for special circumstances
        if counter < 4:
            break

    Comment

    Working...