Added experimental makepkg-update-checksums.sh
[mirrors/Programs.git] / turbobasic / 1998 / LOVEC.BAS
CommitLineData
0f95cc4b
H
1LET N = 5\r
2LET G = 10\r
3LET NALEZ = 0\r
4LET I = 0\r
5LET A = INT(G * RND)\r
6LET B = INT(G * RND)\r
7OLAL:\r
8\r
9IF NOT ( NALEZ = 0 AND I <= 5) THEN GOTO FEDO\r
10INPUT "X,Y" ;X,Y\r
11IF ABS (X-A)+ABS(Y-B)=0 THEN GOTO FEDOS\r
12GOSUB FEDOE\r
13GOTO OLA\r
14FEDOS:\r
15PRINT "ZVIRE NALEZENO:";A,B\r
16LET NALEZ = 1\r
17OLA :\r
18LET I = I+1\r
19GOTO OLAL\r
20END\r
21FEDOE:\r
22PRINT "JDI NA ";\r
23IF X < A\r
24IF X > A\r
25IF X <> A\r
26IF\r
27IF\r
28RETURN\r
29\1a
This page took 0.150212 seconds and 4 git commands to generate.