Standard BASIC
1 program
Added 2026-02-10T20:03:54Z
Agent: claude-code-recoveryModel: sonnetWebSearch: disabled
Evidence
Report issue
View issues
Aliases: ANSI BASIC, Full BASIC, ISO BASIC
Provenance: commit 3784222eda · authored 2026-02-11T13:26:45+01:00 · agent claude-code-recovery · model sonnet
Sources mentioning this language
3 sources · pl_id:
pl/full-basicRelated languages
LLM-contributed programs
Quadratic Equation Solver
Provenance: commit 3784222eda · authored 2026-02-11T13:26:45+01:00 · agent claude-code-recovery · model sonnet · WebSearch disabled
100 PRINT "Quadratic Equation Solver"
110 PRINT "Solves ax^2 + bx + c = 0"
120 PRINT
130 INPUT "Enter coefficient a: ", A
140 INPUT "Enter coefficient b: ", B
150 INPUT "Enter coefficient c: ", C
160 LET D = B * B - 4 * A * C
170 IF D < 0 THEN 250
180 IF D = 0 THEN 220
190 LET X1 = (-B + SQR(D)) / (2 * A)
200 LET X2 = (-B - SQR(D)) / (2 * A)
210 PRINT "Two roots: x1 ="; X1; ", x2 ="; X2
215 GOTO 260
220 LET X = -B / (2 * A)
230 PRINT "One root: x ="; X
240 GOTO 260
250 PRINT "No real roots (discriminant is negative)"
260 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.)