14 LINE (A,A)-(640-A,A),C
15 LINE (A,106-A)-(640-A,106-A),C
16 LINE (A,A)-(A,106-A),C
17 LINE (640-A,A)-(640-A,106-A),C
18 LINE (A,110+A)-(640-A,110+A),C
19 LINE (A,200-A)-(640-A,200-A),C
20 LINE (A,110+A)-(A,200-A),C
21 LINE (640-A,110+A)-(640-A,200-A),C
24 REM zadani polozek adresare
26 A$="NASOB AHOJ POZDR NASO2 KONEC "
29 ON MENU GOSUB NASOB,TEXT,NIC1,NASOB2,KONEC
32 '-----------------------------------------------------------------------------
38 '-----------------------------------------------------------------------------
53 PRINT "PROGRAM PRO ZKOUSENI MALE NASOBILKY"
57 PRINT "NAPIS VYSLEDEK" A "x" B "="
58 INPUT " STISKNI ENTER";C
62 PRINT " SPATNY VYSLEDEK"
73 SOUND RND* 10000+55,55
75 PRINT "Z" N "POKUSU MAS" S "SPATNYCH A" V "DOBRYCH"
77 PRINT "POKUD CHCES POKRACOVAT ZMACKNI ENTER"
79 INPUT "POKUD CHCES SKONCIT NAPIS 1 A ZMACKNI 2 x ENTER";E
81 REM pise chybu sound rnd*100+12,13
83 '-----------------------------------------------------------------------------
86 print "stlac klavesu Enter"
88 '-----------------------------------------------------------------------------
91 A$="Zdravi Vas Tomas Mudrunka"
92 CALL ECHO (5,16,A$,13)
94 CALL ECHO (7,17,A$,13)
95 A$="Jak se Vam libi tento program?"
96 CALL ECHO (7,18,A$,13)
102 '-----------------------------------------------------------------------------
107 rem SOUND RND*1000+20,70
111 rem SOUND RND*300+12,13
112 rem SOUND RND*10000+12,13
115 rem nechat pokud nebude vadit CLS
117 PRINT "PROGRAM PRO ZKOUSENI MALE NASOBILKY - 10 PRIKLADU"
126 PRINT "NAPIS VYSLEDEK" A "x" B "="
127 INPUT " STISKNI ENTER";C
131 SOUND RND*10000+55,55
132 PRINT " SPATNY VYSLEDEK"
133 rem SOUND RND*10000+12,13
136 rem SOUND RND*100+12,13
143 PRINT "Z" I "POKUSU MAS" S "SPATNYCH A" V "DOBRYCH"
146 rem SOUND RND*1000+12,13
151 PRINT "Z" S+V "POKUSU MAS" S "SPATNYCH A" V "DOBRYCH"
159 PRINT "VYSLEDNA ZNAMKA" T
161 Input "Ukonci stiskem klavesy ENTER";A
163 '-----------------------------------------------------------------------------
165 ' postupny tisk textu obsazeneho v retezcove promenne A$
166 ' na souradnice X a Y
182 '--------------------------------------------------------------------------
187 ' X a Y jsou textove souradnice menu-okna
188 ' A$ obsahuje text okna
189 ' D je pocet polozek (radku) v menu
190 ' W=1 - pouze vypis okna , W=0 - vypis i vyber z menu
192 ' v promenne MENU podprogram vraci cislo zvolene polozky
194 L=LEN (A$)/D : MENU = 1 : M = MENU+.0001
197 FOR A=1 TO L+2 : PRINT CHR$(205); : NEXT A
199 FOR A= 1 TO LEN(A$) STEP L
201 PRINT CHR$(186);" ";MID$(A$,A,L);" ";CHR$(186);
203 LOCATE Y+A/L+1,X: PRINT CHR$(200);
204 FOR A=1 TO L+2 : PRINT CHR$(205); : NEXT A
206 IF W=1 THEN W=0 : RETURN
210 IF LEN(I$)=2 THEN IF ASC(MID$(I$,2,1))=72 THEN MENU = MENU - 1
211 IF LEN(I$)=2 THEN IF ASC(MID$(I$,2,1))=80 THEN MENU = MENU + 1
212 IF MENU < 1 THEN MENU = D
213 IF LEN(I$)=1 THEN IF ASC(I$)=13 THEN EXIT LOOP
214 IF MENU > D THEN MENU = 0 : EXIT LOOP
215 IF MENU <> M THEN LOCATE Y+M,X+L+2 : PRINT " ";:LOCATE Y+M,X+1 : PRINT " ";
216 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
223 '-----------------------------------------------------------------------------
230 '-----------------------------------------------------------------------------
233 IF INKEY$<>"" THEN EXIT LOOP
234 C=C+1:IF C>15 THEN C=1
235 COLOR C : LOCATE 24,55:PRINT "STLAC LIBOVOLNOU KLAVESU";
238 '-----------------------------------------------------------------------------