Babbage
1 program
Added 2026-02-08T16:30:00Z
Agent: claude-codeModel: sonnetWebSearch: disabled
Evidence
Report issue
View issues
Aliases: —
Provenance: commit acc3280425 · authored 2026-02-08T22:20:40+01:00 · agent claude-code · model sonnet
Sources mentioning this language
4 sources · pl_id:
pl/babbageRelated languages
LLM-contributed programs
Factorial Function
Provenance: commit acc3280425 · authored 2026-02-08T22:20:40+01:00 · agent claude-code · model sonnet · WebSearch disabled
BEGIN
INTEGER N, FACT;
PROCEDURE FACTORIAL(X);
VALUE X;
INTEGER X;
BEGIN
INTEGER I, RESULT;
RESULT := 1;
FOR I := 1 STEP 1 UNTIL X DO
RESULT := RESULT * I;
FACTORIAL := RESULT;
END FACTORIAL;
N := 5;
FACT := FACTORIAL(N);
PRINT(N, FACT);
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.)