ChipMaster's bwBASIC This also includes history going back to v2.10. *WARN* some binary files might have been corrupted by CRLF.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

22 lines
390 B

  1. 10 REM 'DIM' THREE DIMENSION ARRAY TEST PROGRAM
  2. 20 DIM A(3,4,2)
  3. 30 PRINT "THESE NUMBERS ARE STORED IN AND PRINTED"
  4. 40 PRINT "FROM A THREE DIMENSION NUMERIC ARRAY."
  5. 50 FOR K=1 TO 2
  6. 60 FOR I=1 TO 3
  7. 70 FOR J=1 TO 4
  8. 80 A(I,J,K)=I
  9. 90 NEXT J
  10. 100 NEXT I
  11. 110 NEXT K
  12. 120 FOR K=1 TO 2
  13. 130 FOR I=1 TO 3
  14. 140 FOR J=1 TO 4
  15. 150 PRINT A(I,J,K),
  16. 160 NEXT J
  17. 165 PRINT
  18. 170 NEXT I
  19. 180 PRINT
  20. 190 NEXT K
  21. 999 END