Talk:Do while loop

From Wikipedia, the free encyclopedia
Jump to: navigation, search
WikiProject Computing  
WikiProject icon This article is within the scope of WikiProject Computing, a collaborative effort to improve the coverage of computers, computing, and information technology on Wikipedia. If you would like to participate, please visit the project page, where you can join the discussion and see a list of open tasks.
 ???  This article has not yet received a rating on the project's quality scale.
 ???  This article has not yet received a rating on the project's importance scale.
 

Note that the FORTRAN 77 factoids are inaccurate. The example is a non-standard mixture of FORTRAN 77 plus extensions. Recommend revising and updating to Fortran 95 example. Also recommend lower case for style purposes.

Inconsistent example[edit]

Section 2 says the code listings are demonstrating factorial calculations, but D does not. 62.25.109.195 (talk) 14:46, 29 October 2008 (UTC)we can excute a set of statement

FORTRAN 77 hav no do while[edit]

Hello F77 doesnot have a do while loop. it is a common extension to fortran 77. `a5b (talk) 16:28, 5 May 2010 (UTC)

Repeat Until in Pascal.[edit]

The repeat until of Pascal cannot be considered a Do While loop. It is a do until loop. Therefore, for Pascals repeat until structure to be functionally similar to a do while, its argument needs negating. This is not mentioned clearly enough, but is burred in a sentence about naming conventions. Commonly, viewers of this page will be new to programming and may not fully realise this difference from reading the text as it stands. Should the differences not be be stated more clearly?

One possible solution to unify the Do While and Do Until is to use the NOT operator, as in Until Not ( x > 10).

—Preceding unsigned comment added by Scottie UK (talkcontribs) 16:00, 15 June 2010 (UTC)

Examples[edit]

This examples show in different languages are ridiculous. What is that "factorial"? why not make those examples simpler and easier to understand? any person coming to this article is usually because they are not experts in the subject and the examples should be more tailored to their understanding. I would like the editors involved to change the statements inside the Do clause into easier and more understandable statements. Thanks --Camilo Sanchez (talk) 14:41, 24 May 2011 (UTC)


Factorial is a mathematical operation that fits the function of a do while loop very well. What do you suggest? --129.65.198.240 (talk) 01:51, 15 May 2013 (UTC)

BASIC[edit]

Partly fixed the BASIC section (strange initialisation). I note from the history that this article used to have QBASIC, REAL BASIC, and Visual Basic information, and the existing BASIC section is not BASIC: it includes the word "msgbox". — Preceding unsigned comment added by 203.206.162.148 (talk) 09:43, 10 January 2013 (UTC)