12 LINE (A,A)-(640-A,A),C
13 LINE (A,106-A)-(640-A,106-A),C
14 LINE (A,A)-(A,106-A),C
15 LINE (640-A,A)-(640-A,106-A),C
16 LINE (A,110+A)-(640-A,110+A),C
17 LINE (A,200-A)-(640-A,200-A),C
18 LINE (A,110+A)-(A,200-A),C
19 LINE (640-A,110+A)-(640-A,200-A),C
22 REM zadani polozek adresare
24 A$="NASOB AHOJ POZDR NASO2 KONEC "
27 ON MENU GOSUB NASOB,TEXT,NIC1,NASOB2,KONEC
30 '-----------------------------------------------------------------------------
34 '-----------------------------------------------------------------------------
49 PRINT "PROGRAM PRO ZKOUSENI MALE NASOBILKY"
53 PRINT "NAPIS VYSLEDEK" A "x" B "="
54 INPUT " STISKNI ENTER";C
57 PRINT " SPATNY VYSLEDEK"
67 PRINT "Z" N "POKUSU MAS" S "SPATNYCH A" V "DOBRYCH"
69 PRINT "POKUD CHCES POKRACOVAT ZMACKNI ENTER"
71 INPUT "POKUD CHCES SKONCIT NAPIS 1 A ZMACKNI 2 x ENTER";E
73 REM pise chybu sound rnd*100+12,13
75 '-----------------------------------------------------------------------------
77 print "stlac klavesu Enter"
79 '-----------------------------------------------------------------------------
81 A$="Zdravi Vas Tomas Mudrunka"
82 CALL ECHO (5,16,A$,13)
84 CALL ECHO (7,17,A$,13)
85 A$="Jak se Vam libi tento program?"
86 CALL ECHO (7,18,A$,13)
92 '-----------------------------------------------------------------------------
97 rem SOUND RND*1000+20,70
101 rem SOUND RND*300+12,13
102 rem SOUND RND*10000+12,13
105 rem nechat pokud nebude vadit CLS
107 PRINT "PROGRAM PRO ZKOUSENI MALE NASOBILKY - 10 PRIKLADU"
116 PRINT "NAPIS VYSLEDEK" A "x" B "="
117 INPUT " STISKNI ENTER";C
121 PRINT " SPATNY VYSLEDEK"
122 rem SOUND RND*10000+12,13
125 rem SOUND RND*100+12,13
131 PRINT "Z" I "POKUSU MAS" S "SPATNYCH A" V "DOBRYCH"
134 rem SOUND RND*1000+12,13
139 PRINT "Z" S+V "POKUSU MAS" S "SPATNYCH A" V "DOBRYCH"
147 PRINT "VYSLEDNA ZNAMKA" T
149 Input "Ukonci stiskem klavesy ENTER";A
151 '-----------------------------------------------------------------------------
155 '-----------------------------------------------------------------------------
157 ' postupny tisk textu obsazeneho v retezcove promenne A$
158 ' na souradnice X a Y
174 '--------------------------------------------------------------------------
179 ' X a Y jsou textove souradnice menu-okna
180 ' A$ obsahuje text okna
181 ' D je pocet polozek (radku) v menu
182 ' W=1 - pouze vypis okna , W=0 - vypis i vyber z menu
184 ' v promenne MENU podprogram vraci cislo zvolene polozky
186 L=LEN (A$)/D : MENU = 1 : M = MENU+.0001
189 FOR A=1 TO L+2 : PRINT CHR$(205); : NEXT A
191 FOR A= 1 TO LEN(A$) STEP L
193 PRINT CHR$(186);" ";MID$(A$,A,L);" ";CHR$(186);
195 LOCATE Y+A/L+1,X: PRINT CHR$(200);
196 FOR A=1 TO L+2 : PRINT CHR$(205); : NEXT A
198 IF W=1 THEN W=0 : RETURN
202 IF LEN(I$)=2 THEN IF ASC(MID$(I$,2,1))=72 THEN MENU = MENU - 1
203 IF LEN(I$)=2 THEN IF ASC(MID$(I$,2,1))=80 THEN MENU = MENU + 1
204 IF MENU < 1 THEN MENU = D
205 IF LEN(I$)=1 THEN IF ASC(I$)=13 THEN EXIT LOOP
206 IF MENU > D THEN MENU = 0 : EXIT LOOP
207 IF MENU <> M THEN LOCATE Y+M,X+L+2 : PRINT " ";:LOCATE Y+M,X+1 : PRINT " ";
208 IF MENU <> M THEN LOCATE Y+MENU,X+L+2:COLOR 11:PRINT CHR$(174);:LOCATE Y+MENU,X+1:PRINT CHR$(175);:COLOR C
215 '-----------------------------------------------------------------------------
222 '-----------------------------------------------------------------------------
225 IF INKEY$<>"" THEN EXIT LOOP
226 C=C+1:IF C>15 THEN C=1
227 COLOR C : LOCATE 24,55:PRINT "STLAC LIBOVOLNOU KLAVESU";
230 '-----------------------------------------------------------------------------