Storing FORTRAN Program Code on Punch Cards

This section provides a quick introduction of syntax rules of early versions of FORTRAN language related to punch cards used to store FORTRAN program codes.

Programs written in early versions of FORTRAN language must follow special rules that were related the punch cards used to store program codes in the early days:

Here is a sample code of an early version of FORTRAN LANGUAGE:

C---- THIS PROGRAM READS INPUT FROM THE CARD READER,
C---- 3 INTEGERS IN EACH CARD, CALCULATE AND OUTPUT
C---- THE SUM OF THEM.
  100 READ(5,10) I1, I2, I3
   10 FORMAT(3I5)
      IF (I1.EQ.0 .AND. I2.EQ.0 .AND. I3.EQ.0) GOTO 200
      ISUM = I1 + I2 + I3
      WRITE(6,20) I1, I2, I3, ISUM
   20 FORMAT(7HSUM OF , I5, 2H, , I5, 5H AND , I5,
     *   4H IS , I6)
      GOTO 100
  200 STOP
      END

The picture below shows a punch card representing one line of a FORTRAN program (Source: www.wikipedia.org):

FORTRN Code Punch Card
FORTRN Code Punch Card

Table of Contents

 About This Book

 2002 - .NET Framework Developed by Microsoft

 1995 - PHP: Hypertext Preprocessor Created by Rasmus Lerdorf

 1995 - Java Language Developed by Sun Microsystems

 1991 - WWW (World Wide Web) Developed by Tim Berners-Lee

 1991 - Gopher Protocol Created by a University of Minnesota Team

 1984 - X Window System Developed a MIT Team

 1984 - Macintosh Developed by Apple Inc.

 1983 - "Sendmail" Mail Transfer Agent Developed by Eric Allman

 1979 - The Tcsh (TENEX C Shell) Developed by Ken Greer

 1978 - Bash (Bourne-Again Shell) Developed by Brian Fox

 1978 - The C Shell Developed by Bill Joy

 1977 - The Bourne Shell Developed by Stephen Bourne

 1977 - Apple II Designed by Steve Jobs and Steve Wozniak

 1976 - vi Text Editor Developed by Bill Joy

 1974 - Internet by Vinton Cerf

 1972 - C Language Developed by Dennis Ritchie

 1971 - FTP Protocol Created by Abhay Bhushan

 1970 - UNIX Operating System Developed by AT&T Bell Labs

1957 - FORTRAN Language Developed by IBM

 What Is FORTRAN

Storing FORTRAN Program Code on Punch Cards

 FORTRAN 66 - Example Program Code

 FORTRAN 77 - Example Program Code

 g77 - GNU Project FORTRAN Compiler

 Fortran 90 - Example Program Code

 References

 Full Version in PDF/EPUB