OpenStax CNX

You are here: Home » Content » Do While Loop

About: Do While Loop

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

View the content: Do While Loop


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

Authors: Kenneth Leroy Busbee (
Copyright Holders: Kenneth Leroy Busbee (
Maintainers: Kenneth Leroy Busbee (

Latest version: 1.5 (history)
First publication date: Mar 17, 2009 4:25 pm +0000
Last revision to module: Jan 15, 2010 2:52 pm +0000


PDF: m20596_1.5.pdf PDF file, for viewing content offline and printing. Learn more.
XML: m20596_1.5.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.

Version History

Version: 1.5 Jan 15, 2010 2:52 pm +0000 by Kenneth Leroy Busbee
Added Google Analytics.

Version: 1.4 May 4, 2009 9:50 am +0000 by Kenneth Leroy Busbee
Repaired for printing.

Version: 1.3 Apr 13, 2009 2:38 pm +0000 by Kenneth Leroy Busbee
Fixed typo in definitions.

Version: 1.2 Apr 11, 2009 9:29 am +0000 by Kenneth Leroy Busbee
Changed the term on 3 definitions. 

Version: 1.1 Mar 17, 2009 4:37 pm +0000 by Kenneth Leroy Busbee
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: Do While Loop
  • the OpenStax-CNX URL where the work can be found:

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. Do While Loop, OpenStax-CNX Web site., Jan 15, 2010.

American Medical Assocation (AMA) Manual of Style:

Busbee K. Do While Loop [OpenStax-CNX Web site]. January 15, 2010. Available at:

American Psychological Assocation (APA) Publication Manual:

Busbee, K. (2010, January 15). Do While Loop. Retrieved from the OpenStax-CNX Web site:

Chicago Manual of Style (Bibliography):

Busbee, Kenneth. "Do While Loop." OpenStax-CNX. January 15, 2010.

Chicago Manual of Style (Note):

Kenneth Busbee, "Do While Loop," OpenStax-CNX, January 15, 2010,

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

Busbee, K. 2010. Do While Loop. OpenStax-CNX, January 15, 2010.

Modern Languages Association (MLA) Style Manual:

Busbee, Kenneth. Do While Loop. OpenStax-CNX. 15 Jan. 2010 <>.