At which point is the Start located?

by Solitaire (Login Solitaire1)
R

 

See if something like this will work:

CONST FALSE = 0
DIM swch AS INTEGER, chng AS INTEGER, lg AS INTEGER
swch = FALSE
chng = swch
CLS
DO
   swch = NOT swch
   IF chng <> swch THEN lg = lg + 1
LOOP UNTIL swch = chng
PRINT lg
END


However, if you place DO above the swch = FALSE line, you will get an overflow error.



    
This message has been edited by Solitaire1 on Aug 6, 2009 10:05 AM

Posted on Aug 6, 2009, 10:03 AM

Respond to this message   

Goto Forum Home

 Copyright © 1999-2017 Network54. All rights reserved.   Terms of Use   Privacy Statement  

Quantcast