Regularity

From Maze

(Difference between revisions)
Jump to: navigation, search
(Beginning of structured programming section)
(→"Go To Statement Considered Harmful")
Line 55:Line 55:
GOTO's potential problems only get worse when it is combined with other flow control statements. Consider this variant of 10 Print:
GOTO's potential problems only get worse when it is combined with other flow control statements. Consider this variant of 10 Print:
−
<pre>1 FOR I FROM 0 TO 999
+
<pre>1 FOR I = 0 TO 999
5 CHARCODE%=205.5+RND(1)
5 CHARCODE%=205.5+RND(1)
10 POKE 1024+I,CHARCODE%
10 POKE 1024+I,CHARCODE%

Revision as of 12:32, 22 February 2011

View this revision of Regularity.

Personal tools