Talk:Fortran/Fortran examples

examples for Fortran II, Fortran IV and FORTRAN 77
can be compiled now with gfortran

Example 1
Compiles/runs successfully with g77 g77 *.fpp -o new -Wall -pedantic --H2g2bob 00:30, 29 January 2006 (UTC)

Dual License
I agree to license, the version of this page for which I hold the copyright (this version), under the GNU General Public License (GPL) version 2. Please be aware that other contributors might not do the same, so if you want to use my contributions under the GPL terms, please check the Multi-licensing guides. --H2g2bob 22:46, 27 June 2006 (UTC)

Moving
To comply with the standard wikibook naming policy, I will be moving this page to a section in the Programming:Fortran wikibook, if there are no objections.

Transwiki
I've just added content from Wikipedia article Fortran code examples, which is about to be deleted via AfD. Main authors are mentioned in edit summary, here is the full list:

21:15, 25 October 2007 Hq3473 (27,764 bytes) (Nominated for deletion: see Wikipedia:Articles for deletion/PageName) 09:29, 21 October 2007 Jwmwalrus (27,544 bytes) (>Writing functions) 00:40, 15 October 2007 LanceBarber (27,544 bytes) (adjust sections and subsections) 00:23, 15 October 2007 LanceBarber (27,582 bytes) (fix Main) 12:50, 14 October 2007 24.9.10.202 (Talk | block) (27,596 bytes) (Add fortran 77 example) 12:29, 14 October 2007 24.9.10.202 (Talk | block) (26,580 bytes) (add section breaks, move text) 12:26, 14 October 2007 24.9.10.202 (Talk | block) (26,547 bytes) (fix intro for added examples) 12:21, 14 October 2007 24.9.10.202 (Talk | block) (26,401 bytes) (>Simple Fortran IV program - note) 12:18, 14 October 2007 24.9.10.202 (Talk | block) (26,223 bytes) (>Simple Fortran II program) 12:10, 14 October 2007 24.9.10.202 (Talk | block) (25,969 bytes) (add simple Fortran IV prog) 10:39, 14 October 2007 LanceBarber (24,617 bytes) (wikify lead-in sentence, add internal links) 20:46, 10 October 2007 Hyperionred (24,560 bytes) (The Snoopy Calendar page was deleted by the humorless fascists that run this place. Removing here, too = 01:19, 31 August 2007 Tripodics (24,802 bytes) (>Summations with a DO loop (FORTRAN 90) - Unfortunately, the END DO and EXIT statements were not added until Fortran 90.) 16:35, 6 July 2007 82.18.15.2 (Talk | block) (24,802 bytes) (>Greatest common divisor (FORTRAN 77) - Broken internal link) 14:56, 8 June 2007 Rezd (24,785 bytes) (>Complex numbers (FORTRAN 77)) 14:56, 8 June 2007 Rezd (24,799 bytes) (Cleared up prompt as it may be confusing to some. - >Greatest common divisor (FORTRAN 77)) 22:15, 10 May 2007 Hq3473 (24,827 bytes) (>"Retro" FORTRAN IV - no link) 05:31, 24 April 2007 69.123.129.152 (Talk | block) (24,831 bytes) (>Summations with a DO loop (FORTRAN 77)) 05:31, 24 April 2007 69.123.129.152 (Talk | block) (24,832 bytes) (>Summations with a DO loop (FORTRAN 77)) 21:36, 16 February 2007 131.239.52.20 (Talk | block) (removed a superfluous comma) 10:28, 9 February 2007 Jayvdb m (avoid redirect to Job Control Language, Replaced: JCL > JCL using AWB) 21:56, 11 January 2007 Minnaert (added categories) 10:27, 18 December 2006 Alaibot m (Robot: tagging as uncategorised) 22:08, 5 December 2006 12.14.71.50 (Talk | block) 02:00, 5 December 2006 69.123.129.152 (Talk | block) (I've added a small program I wrote to test certain kinds of DO loops, then enhanced it with an example of writing to data files.) 01:19, 24 November 2006 24.197.168.66 (Talk | block) (>Writing subroutines (Fortran 90)) 02:24, 18 October 2006 STBot m (clean up using AWB) 18:05, 16 August 2006 Rwwww 10:34, 10 August 2006 KymFarnik m 06:10, 10 August 2006 KymFarnik (Tidy) 08:34, 9 August 2006 Rwwww 07:43, 9 August 2006 Rwwww 07:40, 9 August 2006 Rwwww MaxSem 19:18, 3 November 2007 (UTC)

Fortran 2 does NOT know Boolean if statemens
The same example of the Heron's Formula is also on Wikipedia itself. I dare now to rectify.