Added experimental makepkg-update-checksums.sh
[mirrors/Programs.git] / turbobasic / 1998 / NASOBIT2.BAS
CommitLineData
0f95cc4b
H
1SCREEN 0\r
2CLS\r
3SOUND RND*1000+20,70\r
4COLOR 4,15\r
5N=0\r
6S=0\r
7V=0\r
8SOUND RND*300+12,13\r
9SOUND RND*10000+12,13\r
10OPET:\r
11N=N+1\r
12CLS\r
13LOCATE 4,23\r
14PRINT "PROGRAM PRO ZKOUSENI MALE NASOBILKY"\r
15A=INT(RND(5)*10+1)\r
16B=INT(RND(4)*10+1)\r
17LOCATE 10,5\r
18PRINT "NAPIS VYSLEDEK" A "x" B "="\r
19INPUT " STISKNI ENTER";C\r
20D=A*B\r
21IF D=C THEN ANO\r
22PRINT " SPATNY VYSLEDEK"\r
23SOUND RND*10000+12,13\r
24S=S+1\r
25GOTO VOLBA\r
26SOUND RND*100+12,13\r
27ANO:\r
28PRINT " SPRAVNE"\r
29V=V+1\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 2 x ENTER";E\r
37IF E<>1 THEN OPET\r
38sound rnd*100+12,13\r
39END\r
40\r
41\1a
This page took 0.202323 seconds and 4 git commands to generate.