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. (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)


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? -- (talk) 01:51, 15 May 2013 (UTC)


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 (talk) 09:43, 10 January 2013 (UTC)

Helpbox experiment[edit]

I added a Template:Helpbox as an EXPERIMENT, in the hopes that it might help readers quickly navigate to very closely related articles WITHOUT having to dig for related links within the article. I got this idea from some other Wikipedia articles that have a navigator template in the upper-right corner, such as Old Testament and other religious articles.

I used the Helpbox template as an easy means to create an experimental concept, instead of creating a template, then learning that everyone hated the navigation concept and wasting a bunch of my time.

If people like this concept, or don't hate it, then maybe we can find a better way to do it and/or something that looks fancier too.

SbmeirowTalk • 08:07, 29 September 2015 (UTC)

Its a fine idea, and clearly helpful. I like it.
Its been over half a year since your above post. Perhaps it is time to form some conclusion about whether your "EXPERIMENT" was a success, or not? I vote success.
As you suggest, it should be a dedicated template. It would be cleaner as such, perhaps in the style of {{Programming language lists}} or {{Programming paradigms}}?
Do you wish to go ahead and make a suitable template, or should I?
--Jerryobject (talk) 15:21, 2 June 2016 (UTC)
Thanks for the feedback! Wow, how the heck did I miss your comment? Sorry! Some days a person can get flooded with a long list of stuff in the WatchList and miss something important. I don't think anyone has complained about it in any of the loop articles. I have NOT created a template for it yet. • SbmeirowTalk • 19:01, 13 November 2016 (UTC)

@Sbmeirow and Jerryobject: This is why I created Template:Loop constructs. Jarble (talk) 04:52, 17 December 2016 (UTC)

We don't need an example for each language[edit]

Seriously? 19 examples? One example, written in the same syntax as the "Equivalent constructs" section is more than sufficient. If I didn't suspect it would be immediately reverted, I'd remove the whole section myself. — Preceding unsigned comment added by (talk) 15:34, 5 July 2016 (UTC)