INPUT
INPUT [prompt,|;] var[, var [, …]]
Reads text from keyboard and stores it in the variable
var
. The string prompt
is printed on the
screen. If promt
is followed by a ;
, a
question mark and a space are printed additionally. If you want to input
two or more variables, the input needs to be separated with
,
.
Example 1: Using a single var
input "How old are you?", age
print age
Example 2: Using multiple vars
input "Input three numbers: ", a, b, c ' Input i.e. 1,2,3
print a, b, c
Code samples using INPUT
002 numeric variables.bas
004 loops.bas
005 challenge.bas
006 arrays+.bas
3d_palmx.bas
3dtictac.bas
3dttt.bas
3dttt.bas
4tune.bas
7gables.bas
agendus.bas
ai.bas
amortig.bas
anball 1.0.bas
anomail.bas
bairstow.bas
Balleta 2-11-15.bas
BAS_NOW.bas
BAS_NOWv2.bas
base64.bas
biorythms.bas
Blackbox.bas
blackbox.bas
BlackJack.bas
blackjack.bas
block.bas
bmpreal.bas
bolmo.bas
bowling7.bas