OpenStax CNX

Sections
You are here: Home » Content » While Loop

About: While Loop

Module by: Kenneth Leroy Busbee. E-mail the author

View the content: While Loop

Metadata

Name: While Loop
ID: m20598
Language: English (en)
Summary: An introduction to the while control structure with examples in the C++ programming language.
Subject: Science and Technology
Keywords: infinite loop
License: Creative Commons Attribution License CC-BY 3.0

Authors: Kenneth Leroy Busbee (ken.busbee@hccs.edu)
Copyright Holders: Kenneth Leroy Busbee (ken.busbee@hccs.edu)
Maintainers: Kenneth Leroy Busbee (ken.busbee@hccs.edu)

Latest version: 1.8 (history)
First publication date: Mar 17, 2009 5:21 pm -0500
Last revision to module: Mar 26, 2010 9:19 am -0500

Downloads

PDF: m20598_1.8.pdf PDF file, for viewing content offline and printing. Learn more.
XML: m20598_1.8.cnxml XML that defines the structure and contents of the module, minus any included media files. Can be reimported in the editing interface. Learn more.
Source Export ZIP: m20598_1.8.zip ZIP containing the module XML plus any included media files. Can be reimported in the editing interface. Learn more.

Version History

Version: 1.8 Mar 26, 2010 9:19 am -0500 by Kenneth Leroy Busbee
Changes:
Corrected a typo.

Version: 1.7 Oct 24, 2009 12:13 pm -0500 by Kenneth Leroy Busbee
Changes:
Corrected minor typos. Added another infinite loop example. Added Google Analytics.

Version: 1.6 May 4, 2009 3:28 pm -0500 by Kenneth Leroy Busbee
Changes:
Added a keyword to the metadata.

Version: 1.5 May 4, 2009 1:55 pm -0500 by Kenneth Leroy Busbee
Changes:
Repaired for printing.

Version: 1.4 Apr 13, 2009 2:46 pm -0500 by Kenneth Leroy Busbee
Changes:
Fixed typo in definition.

Version: 1.3 Apr 11, 2009 9:33 am -0500 by Kenneth Leroy Busbee
Changes:
Changed the term on one definition.

Version: 1.2 Mar 17, 2009 6:34 pm -0500 by Kenneth Leroy Busbee
Changes:
Added a prerequsite link. 

Version: 1.1 Mar 17, 2009 5:31 pm -0500 by Kenneth Leroy Busbee
Changes:
Initial Module

How to Reuse and Attribute This Content

If you derive a copy of this content using a OpenStax-CNX account and publish your version, proper attribution of the original work will be automatically done for you.

If you reuse this work elsewhere, in order to comply with the attribution requirements of the license (CC-BY 3.0), you must include

  • the authors' names: Kenneth Busbee
  • the title of the work: While Loop
  • the OpenStax-CNX URL where the work can be found: http://cnx.org/content/m20598/1.8/

See the citation section below for examples you can copy.

How to Cite and Attribute This Content

The following citation styles comply with the attribution requirements for the license (CC-BY 3.0) of this work:

American Chemical Society (ACS) Style Guide:

Busbee, K. While Loop, OpenStax-CNX Web site. http://cnx.org/content/m20598/1.8/, Mar 26, 2010.

American Medical Assocation (AMA) Manual of Style:

Busbee K. While Loop [OpenStax-CNX Web site]. March 26, 2010. Available at: http://cnx.org/content/m20598/1.8/.

American Psychological Assocation (APA) Publication Manual:

Busbee, K. (2010, March 26). While Loop. Retrieved from the OpenStax-CNX Web site: http://cnx.org/content/m20598/1.8/

Chicago Manual of Style (Bibliography):

Busbee, Kenneth. "While Loop." OpenStax-CNX. March 26, 2010. http://cnx.org/content/m20598/1.8/.

Chicago Manual of Style (Note):

Kenneth Busbee, "While Loop," OpenStax-CNX, March 26, 2010, http://cnx.org/content/m20598/1.8/.

Chicago Manual of Style (Reference, in Author-Date style):

Busbee, K. 2010. While Loop. OpenStax-CNX, March 26, 2010. http://cnx.org/content/m20598/1.8/.

Modern Languages Association (MLA) Style Manual:

Busbee, Kenneth. While Loop. OpenStax-CNX. 26 Mar. 2010 <http://cnx.org/content/m20598/1.8/>.