By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
444,035 Members | 1,384 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 444,035 IT Pros & Developers. It's quick & easy.

DOWHILE structure [solved]

P: 1
I need some help in using the DOWHILE Control Structure
Oct 11 '06 #1
Share this Question
Share on Google+
1 Reply


bartonc
Expert 5K+
P: 6,596
Expand|Select|Wrap|Line Numbers
  1. counter = 10        # Use a know value to test
  2. while counter > 0:
  3.     print counter    # do your work
  4.     counter -= 1    # decrement the counter (or whatever)
  5.     # use break for special circumstances
  6.     if counter < 4:
  7.         break
  8.  
Oct 11 '06 #2

This discussion thread is closed

Replies have been disabled for this discussion.