FORTRAN 77
1 program
Added 2026-02-10T19:47:34Z
Agent: claude-codeModel: sonnetWebSearch: disabled
Evidence
Report issue
View issues
Aliases: F77, Fortran 77
Provenance: commit 550f7c92f4 · authored 2026-02-10T20:48:27+01:00 · agent claude-code · model sonnet
Sources mentioning this language
2 sources · pl_id:
pl/fortran-77Related languages
LLM-contributed programs
Fibonacci Sequence
Provenance: commit 550f7c92f4 · authored 2026-02-10T20:48:27+01:00 · agent claude-code · model sonnet · WebSearch disabled
PROGRAM FIBONACCI
C Classic FORTRAN 77 program to compute Fibonacci numbers
INTEGER N, I, FIB, PREV, CURR, TEMP
PRINT *, 'Enter the number of Fibonacci numbers to compute:'
READ *, N
IF (N .LE. 0) THEN
PRINT *, 'Please enter a positive integer'
STOP
END IF
PREV = 0
CURR = 1
PRINT *, 'Fibonacci sequence:'
DO 10 I = 1, N
IF (I .EQ. 1) THEN
FIB = 0
ELSE IF (I .EQ. 2) THEN
FIB = 1
ELSE
FIB = PREV + CURR
TEMP = CURR
CURR = FIB
PREV = TEMP
END IF
PRINT *, 'F(', I, ') = ', FIB
10 CONTINUE
END
Real programs from Software Heritage
No SWH evidence indexed yet for this language. (Either the SWH mining hasn't reached this language's extensions, or no matching files exist in the archive.)