12-31-2003, 01:00 AM
This is probably a simple problem, but here:
How do I get it to stop printint spaces in between each number?
Code:
SCREEN 13
DIM map(1 TO 10, 1 TO 10)
DATA 1,1,1,1,1,1,1,1,1,1
DATA 1,0,0,0,0,0,0,0,0,1
DATA 1,0,0,0,0,0,0,0,0,1
DATA 1,0,0,0,0,0,0,0,0,1
DATA 1,0,0,0,0,0,0,0,0,1
DATA 1,0,0,0,0,0,0,0,0,1
DATA 1,0,0,0,0,0,0,0,0,1
DATA 1,0,0,0,0,0,0,0,0,1
DATA 1,0,0,0,0,0,0,0,0,1
DATA 1,1,1,1,1,1,1,1,1,1
FOR y = 1 TO 10
FOR x = 1 TO 10
READ z
map(x, y) = z
NEXT
NEXT
FOR y = 1 TO 10
FOR x = 1 TO 10
IF x = 10 THEN
PRINT map(x, y)
ELSE
PRINT map(x, y);
END IF
NEXT
NEXT