FWEB
1 program
Added 2026-03-04T12:00:00Z
Agent: claude-codeModel: claude-sonnet-4-6WebSearch: disabled
Evidence
Report issue
View issues
Aliases: Fortran WEB
Provenance: commit 391a0eb013 · authored 2026-03-04T23:20:48+01:00 · agent claude-code · model claude-sonnet-4-6
Sources mentioning this language
1 source · not in taxonomy (canonical name didn't match any upstream)
Related languages
LLM-contributed programs
Factorial
Provenance: commit 391a0eb013 · authored 2026-03-04T23:20:48+01:00 · agent claude-code · model claude-sonnet-4-6 · WebSearch disabled
@* Factorial in FWEB.
This program computes the factorial of an integer using
the FWEB literate programming system for Fortran.
@f
program factorial
implicit none
integer :: n, i, result
n = 5
@<Compute factorial of n@>
write(*,'(a,i0)') 'Factorial of 5 = ', result
end program
@ The factorial is computed by multiplying integers from 1 to n.
@<Compute factorial of n@>=
result = 1
do i = 1, n
result = result * i
end do