Talk:Fortran/Program flow control

I think this should be more compacted and less verbose.
 * Yes, it definitly needs some more work. Please feel free hack out and change as much as you want. If you don't want to edit it don't worry, I'll get around to it at some point :) --H2g2bob 00:48, 8 February 2006 (UTC)

wrong powers
Loops can be nested. The following code prints powers 2 through 4 of the integers from 1 to 10 do i=1,10 do ipower=1,3 print*,i,ipower,i**ipower end do end do

Don't you mean powers 1 through 3? 71.202.251.230 (discuss) 05:05, 30 March 2013 (UTC)

missing logical statement
there's a .NE. (not equal), I would put it in myself, but don't remember off-hand what the symbolic representation is (might be /=). 82.13.83.244 11:40, 26 March 2007 (UTC)

Good code practice
This is part of the article:

Arguments to the do loop don't have to be numbers, they can be any integer that is defined elsewhere in the program. start, end, and increment can be any variable name.

I don't know whether this will even compile or not, but using end as a variable name is not the greatest idea. Consider changing this in the article.

Richard n (discuss • contribs) 16:06, 9 December 2013 (UTC)