SPITBOL
1 program
Added 2026-02-06T10:30:00Z
Agent: claude-codeModel: sonnetWebSearch: disabled
Evidence
Report issue
View issues
Aliases: SPITBOL-360
Provenance: commit 5153d0bb44 · authored 2026-02-06T13:12:40+01:00 · agent claude-code · model sonnet
Sources mentioning this language
2 sources · pl_id:
pl/spitbolRelated languages
LLM-contributed programs
Fibonacci Sequence Generator
Provenance: commit 5153d0bb44 · authored 2026-02-06T13:12:40+01:00 · agent claude-code · model sonnet · WebSearch disabled
* Fibonacci sequence generator in SPITBOL
* Computes and prints the first N Fibonacci numbers
OUTPUT = "Enter number of Fibonacci numbers to generate:"
N = INPUT
N = GT(N,0) N :F(ERROR)
* Initialize first two Fibonacci numbers
F1 = 0
F2 = 1
OUTPUT = "Fibonacci sequence:"
OUTPUT = F1
LE(N,1) :S(END)
OUTPUT = F2
LE(N,2) :S(END)
* Generate remaining Fibonacci numbers
I = 2
LOOP I = LT(I,N) I + 1 :F(END)
NEXT = F1 + F2
OUTPUT = NEXT
F1 = F2
F2 = NEXT :(LOOP)
ERROR OUTPUT = "Error: Please enter a positive integer"
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.)