ok, bplus
here's a small progie that will guess a number that you pick between 1 and 127
_TITLE "number guess"
PRINT " Think of an Integer Number between 1 and 127"
PRINT "press RETURN when you have picked a number"
PRINT "and I will present you with 7 screens of numbers"
PRINT "on each screen of numbers, see if your number is there"
PRINT "and answer y or n to the question"
PRINT
DIM i%, j%, m%, n%, k%, l%, p%, yn%
yn% = 0
DIM a$
m% = 7
n% = (2 ^ m%) - 1
DIM c%(m%, (2 ^ (m% - 1)))
k% = 1
l% = 1
INPUT "Press Return to start "; a$
WHILE k% < n%
p% = 1
FOR i% = k% TO n% STEP k% * 2
FOR j% = i% TO i% + k% - 1
c%(l%, p%) = j%
p% = p% + 1
NEXT
NEXT
l% = l% + 1
k% = k% * 2
WEND
FOR i% = 1 TO m%
FOR j% = 1 TO (2 ^ (m% - 1)) STEP 4
PRINT USING "####"; c%(i%, j%);
PRINT USING "####"; c%(i%, j% + 1);
PRINT USING "####"; c%(i%, j% + 2);
PRINT USING "####"; c%(i%, j% + 3)
NEXT j%
INPUT "is your number there? ", a$
IF a$ = "y" THEN yn% = yn% + c%(i%, 1)
CLS
NEXT i%
PRINT "your number is "; yn%
SLEEP