Syntax Errors

Publication: Syntax
Pub Details: Syntax/Syntax ZX80 v2 n8 (Volume 2, Issue 8)
Date: August 1981
Pages: 2

In LETTERS last month, we defined RND(J) in 4K as setting the random number generator to J. RND(J) actually gives a random number between 1 and J.

Mel Routt asks that line 115 of his Loan Amortization program (July 81) be changed to:

 115 IF A$="NO" THEN GO TO 10

Here are corrections to 30 PROGRAMS FOR THE SINCLAIR ZX80 by Melbourne House, courtesy of Image Computer Products, Inc.:

Noughts and Crosses, p.26

 610 GO TO 790

Nim, p. 34

 690 IF T(0) > 0 THEN GO TO 745
745 FOR R = 1 TO 3

Blackjack, p. 40

 780 IF N(2) = 21 AND N(0) = 1 THEN LET W = 2

Bubble Sort, p.42

 130 LET L = N + K - I

Maths Drill, p. 70

 670 STOP

Life, p.77

 450 NEXT I
460 FOR I = 9 TO 55

Prime Numbers, p.79

 150 IF X / A(R) > A(R) THEN GO TO 180

Simultaneous Equations, p.82

 610 IF NOT D / GCD = S THEN PRINT "/";ABS (D / GCD);

Chomp, p.95

 140 LET A(0) = 53
325 PRINT

Capitals of the World, p.73

(The second line numbered 430 should be 440, the line numbered 440 should be 450, and the line numbered 450 should be 460.)