Added experimental makepkg-update-checksums.sh
[mirrors/Programs.git] / turbobasic / 1998 / NASOBENI.BAS
CommitLineData
0f95cc4b
H
1SCREEN 0\r
2COLOR 0,15\r
3SOUND 700,12\r
4N=0\r
5S=0\r
6V=0\r
7\r
8OPET:\r
9N=N+1\r
10CLS\r
11LOCATE 4,23\r
12PRINT "PROGRAM PRO ZKOUSENI MALE NASOBILKY"\r
13A=INT(RND(5)*10+1)\r
14B=INT(RND(4)*10+1)\r
15LOCATE 10,5\r
16PRINT "NAPIS VYSLEDEK" A "x" B "="\r
17INPUT " STISKNI ENTER";C\r
18D=A*B\r
19IF D=C THEN ANO\r
20PRINT " SPATNY VYSLEDEK"\r
21SOUND 100,10\r
22S=S+1\r
23GOTO VOLBA\r
24\r
25ANO:\r
26PRINT " SPRAVNE"\r
27SOUND 900,8\r
28V=V+1\r
29\r
30VOLBA:\r
31LOCATE 18,10\r
32PRINT "Z" N "POKUSU MAS" S "SPATNYCH A" V "DOBRYCH"\r
33LOCATE 20,10\r
34PRINT "POKUD CHCES POKRACOVAT ZMACKNI ENTER"\r
35LOCATE 21,10\r
36INPUT "POKUD CHCES SKONCIT NAPIS 1 A ZMACKNI ENTER";E\r
37IF E<>1 THEN OPET\r
38SOUND 900,12\r
39SOUND 100,7\r
40\r
41END\r
42\r
43\1a
This page took 0.166922 seconds and 4 git commands to generate.