BASIC
v1.9.0
BASIC
v1.9.0
BASIC (Beginner's All-purpose Symbolic Instruction Code) is a family of high-level languages originally designed by John Kemeny and Thomas Kurtz at Dartmouth College in 1964. It was created to make programming accessible to students and beginners, with simple, English-like statements. BASIC became hugely popular on early home computers, where many people wrote their first programs using line numbers, PRINT statements, and GOTO.
On CompileBytes, BASIC is executed by an interpreter reported as version 1.9.0. This dialect supports the classic, approachable style of BASIC: straightforward PRINT and INPUT for I/O, simple variables, FOR/NEXT loops, and conditional logic. BASIC remains a friendly way to learn fundamental programming concepts such as variables, loops, and branching without the ceremony of more complex languages, and it is well suited to short scripts and quick experiments.
PRINT "Hello, World!"LET A = 10
LET B = 20
PRINT "Sum is "; A + BFOR I = 1 TO 5
PRINT "Count: "; I
NEXT IINPUT "Enter your name: "; N$
PRINT "Hello, "; N$LET X = 7
IF X > 5 THEN
PRINT "Big"
ELSE
PRINT "Small"
END IFLET I = 1
WHILE I <= 5
PRINT I
LET I = I + 1
WENDLET TOTAL = 0
FOR I = 1 TO 10
LET TOTAL = TOTAL + I
NEXT I
PRINT "Total: "; TOTALFOR I = 10 TO 0 STEP -2
PRINT I
NEXT ILET A$ = "Hello, "
LET B$ = "World!"
PRINT A$ + B$Yes. CompileBytes runs your BASIC program in the browser with no local interpreter or setup required.
It uses a BASIC interpreter reported as version 1.9.0 that supports classic statements like PRINT, INPUT, and FOR/NEXT.
Yes. Use the INPUT statement to read a value, and supply the data through the input box before running.
Yes, running BASIC on CompileBytes is completely free.
In traditional BASIC a trailing dollar sign (like N$) marks a string variable, distinguishing it from numeric variables.