Tuesday, March 30, 2010

Comparing Loop Constrcts

  • Use the while loop to iterate indefinitely through statements and to perform the statements zero or more times.
  • Use the do/while loop to iterate indefinitely through statements and to perform the statements one or more times.
  • Use the for loop to step through statements a predefined number of times.

No comments:

Post a Comment

Java, JavaScript, HTML, XHTML, AJAX, CSS, etc.