Caftori's Basic programming example

BASIC Programming Language

Sample Program

REM

PRINT "HI"

PRINT "WHAT IS YOUR NAME?"

INPUT NAME$

PRINT "WELCOME TO BASIC", NAME$

PRINT "HOW OLD ARE YOU?", NAME$

INPUT AGE1

PRINT "IN 10 YEARS YOU WILL BE", AGE1+10, NAME$

IF AGE1>20 GOTO OLDY

PRINT "YOU ARE FAIRLY YOUNG", NAME$

GOTO END

OLDY: PRINT "YOU ARE VERY OLD," NAME$, "SEE YOU NEXT TIME!"

END: END