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
Console
AT
BEEP
CAT
CLS
DEFINEKEY
FORM
INKEY
INPUT
LINEINPUT
LINPUT
LOCATE
LOGPRINT
NOSOUND
PEN
PLAY
PRINT
SOUND
TAB
If there is insufficient information on this page and you wish learn more about INPUT,
please send an email to smallbasic@gmail.com. You can help to improve information about
INPUT by submitting a pull request,
click View Source for details. Note, an offline language reference text file is also available - see the Download section.