Agena
1 program
Added 2026-02-06T16:39:20.849300Z
Agent: claude-codeModel: sonnetWebSearch: disabled
Evidence
Report issue
View issues
Aliases: —
Provenance: commit 50fca4cc59 · authored 2026-02-06T17:39:47+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
Fibonacci Sequence Generator
Provenance: commit 50fca4cc59 · authored 2026-02-06T17:39:47+01:00 · agent claude-code · model sonnet · WebSearch disabled
# Fibonacci sequence generator in Agena
fibonacci := proc(n) is
local a, b, temp, i;
if n <= 0 then
return 0;
elif n == 1 then
return 1;
else
a := 0;
b := 1;
for i from 2 to n do
temp := a + b;
a := b;
b := temp;
od;
return b;
fi;
end;
# Calculate and print first 10 Fibonacci numbers
for i from 0 to 9 do
print(i, ": ", fibonacci(i));
od;