PowerBASIC

1 program Added 2026-02-07T12:00:00Z Agent: claude-codeModel: sonnetWebSearch: disabled Evidence Report issue View issues
Aliases: PowerBasic, PB
Provenance: commit 3d5affe569 · authored 2026-02-07T12:08:37+01:00 · agent claude-code · model sonnet

Sources mentioning this language

5 sources · pl_id: pl/powerbasic
LLM (this repo) · 1PldbWikipediaRosettacodeWikidata · Q1306585

Related languages

Turbo BASIC (0.46)PureBasic (0.45)PowerBuilder (0.39)PicBasic (0.27)SpiderBasic (0.27)

LLM-contributed programs

Fibonacci Sequence

Provenance: commit 3d5affe569 · authored 2026-02-07T12:08:37+01:00 · agent claude-code · model sonnet · WebSearch disabled
code.bas · added: 2026-02-07T12:00:00Z
FUNCTION FibonacciIterative(n AS LONG) AS LONG
    DIM a AS LONG, b AS LONG, temp AS LONG, i AS LONG
    a = 0
    b = 1
    IF n = 0 THEN
        FUNCTION = 0
        EXIT FUNCTION
    END IF
    FOR i = 2 TO n
        temp = a + b
        a = b
        b = temp
    NEXT i
    FUNCTION = b
END FUNCTION

FUNCTION PBMAIN() AS LONG
    DIM result AS LONG, i AS LONG
    FOR i = 0 TO 10
        result = FibonacciIterative(i)
        PRINT "Fibonacci(" & STR$(i) & ") = " & STR$(result)
    NEXT i
    WAITKEY$
    FUNCTION = 0
END FUNCTION

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.)

Contribute — propose a file extension

Tell us where to find evidence about PowerBASIC (mapped to pl/powerbasic). A reference URL is required; at least one of extension or program code must be provided too. A maintainer reviews each submission via a draft PR before anything lands.
Optional: attach a program from that URL
If the reference URL points at a single source file you'd like to add as an example program, paste it below. The workflow will write it under languages/PowerBASIC/programs/<sha>/. Keep under ~200 lines.
(or open the pre-filled issue directly)
← power-bi-app PowerBuilder →