Algol W
1 program
Added 2025-11-05T20:05:45Z
Model: google/gemini-2.5-proTemp: 0.4
Evidence
Report issue
View issues
Aliases: ALGOL W
Provenance: commit 59658760af · authored 2025-11-05T21:05:45+01:00 · model google/gemini-2.5-pro
Sources mentioning this language
3 sources · pl_id:
pl/algol-w-2Wikipedia infobox ↗
Pulled from the
wikimedia/structured-wikipedia
snapshot — see data/raw/wikipedia_pl_facts.*.jsonl and
pl_fact.csv for the long-table provenance.
| Paradigms | multi-paradigm: procedural · imperative · structured |
|---|---|
| Typing | static, strong |
| Designed by | Niklaus Wirth · Tony Hoare |
| First appeared | 1966 |
| Influenced by | ALGOL 60 |
| Implemented in | PL360 |
Related languages
LLM-contributed programs
Towers of Hanoi in Algol W
Provenance: commit 59658760af · authored 2025-11-05T21:05:45+01:00 · model google/gemini-2.5-pro · Temp 0.4
% The Towers of Hanoi %
BEGIN
% N is the number of disks %
INTEGER N;
% The procedure that does the actual work %
PROCEDURE HANOI(INTEGER VALUE M; STRING(1) VALUE A, B, C);
BEGIN
IF M > 0 THEN
BEGIN
HANOI(M-1, A, C, B);
WRITE("Move disk from ", A, " to ", B);
HANOI(M-1, C, B, A)
END
END;
WRITE("Enter number of disks");
READ(N);
HANOI(N, "A", "B", "C")
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.)