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 HELP POZDR NASO2 KONEC "
29 ON MENU GOSUB NASOB,TEXT,NIC1,NASOB2,KONEC
32 '-----------------------------------------------------------------------------
35 print "JESTLI ŽE NEUMÍTE NASOBIT:*KONEC*,!!!POZOR!!! NASOB2 ZNAMKUJE"
37 '-----------------------------------------------------------------------------
51 PRINT "PROGRAM PRO ZKOUSENI MALE NASOBILKY"
55 PRINT "NAPIS VYSLEDEK" A "x" B "="
56 INPUT " STISKNI ENTER";C
60 PRINT " SPATNY VYSLEDEK"
72 PRINT "Z" N "POKUSU MAS" S "SPATNYCH A" V "DOBRYCH"
74 PRINT "POKUD CHCES POKRACOVAT ZMACKNI ENTER"
76 INPUT "POKUD CHCES SKONCIT NAPIS 1 A ZMACKNI 2 x ENTER";E
78 REM pise chybu sound rnd*100+12,13
80 '-----------------------------------------------------------------------------
82 print "stlac klavesu Enter"
84 '-----------------------------------------------------------------------------
86 A$="Zdravi Vas Tomas Mudrunka"
87 CALL ECHO (5,16,A$,13)
89 CALL ECHO (7,17,A$,13)
90 A$="Jak se Vam libi tento program?"
91 CALL ECHO (7,18,A$,13)
96 '-----------------------------------------------------------------------------
107 rem nechat pokud nebude vadit CLS
109 PRINT "PROGRAM PRO ZKOUSENI MALE NASOBILKY - 10 PRIKLADU"
118 PRINT "NAPIS VYSLEDEK" A "x" B "="
119 INPUT " STISKNI ENTER";C
123 SOUND RND*10000+55,55
124 PRINT " SPATNY VYSLEDEK"
135 PRINT "Z" I "POKUSU MAS" S "SPATNYCH A" V "DOBRYCH"
143 PRINT "Z" S+V "POKUSU MAS" S "SPATNYCH A" V "DOBRYCH"
151 PRINT "VYSLEDNA ZNAMKA" T
153 Input "Ukonci stiskem klavesy ENTER";A
155 '-----------------------------------------------------------------------------
159 '-----------------------------------------------------------------------------
161 ' postupny tisk textu obsazeneho v retezcove promenne A$
162 ' na souradnice X a Y
178 '--------------------------------------------------------------------------
183 ' X a Y jsou textove souradnice menu-okna
184 ' A$ obsahuje text okna
185 ' D je pocet polozek (radku) v menu
186 ' W=1 - pouze vypis okna , W=0 - vypis i vyber z menu
188 ' v promenne MENU podprogram vraci cislo zvolene polozky
190 L=LEN (A$)/D : MENU = 1 : M = MENU+.0001
193 FOR A=1 TO L+2 : PRINT CHR$(205); : NEXT A
195 FOR A= 1 TO LEN(A$) STEP L
197 PRINT CHR$(186);" ";MID$(A$,A,L);" ";CHR$(186);
199 LOCATE Y+A/L+1,X: PRINT CHR$(200);
200 FOR A=1 TO L+2 : PRINT CHR$(205); : NEXT A
202 IF W=1 THEN W=0 : RETURN
206 IF LEN(I$)=2 THEN IF ASC(MID$(I$,2,1))=72 THEN MENU = MENU - 1
207 IF LEN(I$)=2 THEN IF ASC(MID$(I$,2,1))=80 THEN MENU = MENU + 1
208 IF MENU < 1 THEN MENU = D
209 IF LEN(I$)=1 THEN IF ASC(I$)=13 THEN EXIT LOOP
210 IF MENU > D THEN MENU = 0 : EXIT LOOP
211 IF MENU <> M THEN LOCATE Y+M,X+L+2 : PRINT " ";:LOCATE Y+M,X+1 : PRINT " ";
212 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
219 '-----------------------------------------------------------------------------
226 '-----------------------------------------------------------------------------
229 IF INKEY$<>"" THEN EXIT LOOP
230 C=C+1:IF C>15 THEN C=1
231 COLOR C : LOCATE 24,55:PRINT "STLAC LIBOVOLNOU KLAVESU";
234 '-----------------------------------------------------------------------------