Number reversal game: Difference between revisions

Content added Content deleted
mNo edit summary
Line 1,843: Line 1,843:
310 DO
310 DO
320 INPUT PROMPT "How many numbers should be flipped? ":FLIP
320 INPUT PROMPT "How many numbers should be flipped? ":FLIP
330 LOOP WHILE FLIP<1 OR FLIP>9
330 LOOP WHILE FLIP<2 OR FLIP>9
340 FOR I=1 TO FLIP/2
340 FOR I=1 TO FLIP/2
350 CALL SWAP(I,FLIP-I+1)
350 CALL SWAP(I,FLIP-I+1)