⭅ Previous (Learn BASIC and QBasic) |
Write and run BASIC programs in your browser! Our web-based BASIC interpreter has support for most QBASIC features. This makes it easy to learn BASIC online, and run your favorite programs.
New to BASIC? See our Learn Basic page.
print "fibonacci calculator"
REM variables are integers by default, but
REM variables ending with $ are strings.
input "enter your name: " name$
print "hello " name$
input "enter a number: " number
let a = 0
let b = 1
let c = 1
for i = 0 to number
a = b
b = c
c = a + b
print c
next
Program State: Stopped
⭅ Previous (Learn BASIC and QBasic) |