Hовi команди системи Turbo-Basic
'----------------------------
SCREEN 2 : CLS
VIEW
WINDOW (-10, -10) - (110, 110)
FOR I = 1 TO 100
X = 100 * RND(1) : Y = 100 * RND(1) : R = 5 * RND(1)
CIRCLE (X, Y), R
NEXT I
END
'НОТИ
'----------
5 CLS
LOCATE 1, 1: PRINT "--------- СI (B)"
LOCATE 2, 1: PRINT "--------- ЛЯ (A)"
LOCATE 3, 1: PRINT "--------- СОЛЬ (G)"
LOCATE 4, 1: PRINT "--------- ФА (F)"
LOCATE 5, 1: PRINT "--------- МI (E)"
LOCATE 6, 1: PRINT "--------- РЕ (D)"
LOCATE 7, 1: PRINT "--------- ДО (C)"
LOCATE 9, 1: PRINT " Вихiд (Q)"
PLAY "O2"
10W$ = INKEY$: IF W$ = "" THEN GOTO 10
IF W$="B" OR W$="b" THEN LOCATE 1,5: PRINT "O": PLAY "B2": GOTO 5
IF W$="A" OR W$="a" THEN LOCATE 2,5: PRINT "O": PLAY "A2": GOTO 5
IF W$="G" OR W$="g" THEN LOCATE 3,5: PRINT "O": PLAY "G2": GOTO 5