Stop for a min!
ok, our programs are getting bigger and a little harder to read because of it. We need to start using spacing to keep the code kinda readable, otherwise it all globs into a mess. One of the things its good to do, is to push over code that is either in a repeat loop or conditional or on their own. CLS print "Enter your name mortal "; input name$ for n = 1 to 10 print "KILL "; name$ gosub stall next n stall: for d = 1 to 1000 next n return this way, its easier to see what is "in" what. It gets more important when your programs get complex for a = 10 to 1 step -1 for b = 5 to 8 for c = 20 to 30 step 2 print "calculating matrix ";a;"x";b;"x";c next c next b next a for a = 10 to 1 step -1 for b = 5 to 8 for c = 20 to 30 step 2 print "calculating matrix ";a;"x";b;"x";c next c next b next a See how you can tell a bit easier what is being repeated by what? |