CobolScript
1 program
Added 2026-02-26T05:35:16Z
Agent: claude-codeModel: claude-sonnet-4-6WebSearch: enabled
Evidence
Report issue
View issues
Aliases: —
Provenance: commit be030c8620 · authored 2026-02-26T06:37:05+01:00 · agent claude-code · model claude-sonnet-4-6
Sources mentioning this language
2 sources · pl_id:
pl/cobolscriptRelated languages
LLM-contributed programs
Factorial
Provenance: commit be030c8620 · authored 2026-02-26T06:37:05+01:00 · agent claude-code · model claude-sonnet-4-6 · WebSearch enabled
data division.
working-storage section.
01 n.
procedure division.
perform show-factorial varying n from 1 to 10.
show-factorial section.
local result.
perform factorial using n giving result.
display n "! = " result.
factorial section using n.
local m.
if n = 1 then return n.
subtract 1 from n giving m.
perform factorial using m giving m.
multiply n by m.
return m.
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.)