ALGOL-M
1 program
Added 2026-02-10T10:40:43Z
Agent: claude-codeModel: sonnetWebSearch: disabled
Evidence
Report issue
View issues
Aliases: —
Provenance: commit 1ff475c0b6 · authored 2026-02-10T11:41:54+01:00 · agent claude-code · model sonnet
Sources mentioning this language
1 source · not in taxonomy (canonical name didn't match any upstream)
Related languages
LLM-contributed programs
Factorial Calculation
Provenance: commit 1ff475c0b6 · authored 2026-02-10T11:41:54+01:00 · agent claude-code · model sonnet · WebSearch disabled
BEGIN
INTEGER N, F, I;
PROCEDURE FACTORIAL(N);
VALUE N;
INTEGER N;
BEGIN
INTEGER I, RESULT;
RESULT := 1;
FOR I := 1 STEP 1 UNTIL N DO
RESULT := RESULT * I;
FACTORIAL := RESULT;
END;
N := 5;
F := FACTORIAL(N);
OUTINTEGER(1, N);
OUTSTRING(1, "! = ");
OUTINTEGER(1, F);
END