Fortran edit

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. — Preceding unsigned comment added by 192.91.173.36 (talkcontribs) 15:44, 9 April 2007 (UTC)Reply

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 statementReply

PHP also doesn't. It just prints 12345. — Preceding unsigned comment added by 2A02:A454:D79F:1:C817:EC38:E3B1:7FB9 (talk) 23:47, 14 May 2020 (UTC)Reply

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)Reply

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)Reply

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)Reply


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)Reply

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)Reply

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)Reply

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)Reply
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)Reply

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

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 86.184.38.70 (talk) 15:34, 5 July 2016 (UTC)Reply

The example is both wrong and fails to teach a lesson edit

While a do-while loop is one of many somewhat cumbersome ways you can compute 5!, the code presented will not compute an arbitrary factorial. For example, it computes 0! = 0, when in fact it's 1.

Furthermore, a factorial can be properly computed with an ordinary while loop with the same body and condition, which is used in the while loop article. Using the exact same body and condition in both articles, even if it happened to compute correctly both times, neglects to showcase the functional difference between the while and the do-while loop. Then, there is little point in having an example at all in the do-while article. 93.138.174.125 (talk) 03:47, 20 November 2020 (UTC)Reply

I agree we need to choose a better example. PythonicWikier (talk) 19:55, 19 November 2023 (UTC)Reply