HTBasic Help
×
Menu
Index

image Example

 
10    OPTION BASE 1
20    DIM A(3,3)
30    DATA -4, 36, 2.3, 5, 89, 17,  -6,  -12, 42, 1, 2, 3
40    RESTORE
50  ! Format (Fmt) for specified matrix (3x3)
60 Fmt3x3: IMAGE 3("[",3DD.DD,3DD.DD,3DD.DD,"]",/)
70    CLEAR SCREEN
80    READ A(*)
90    PRINT "Print the array using the 3x3 matrix format/image"
100   PRINT USING Fmt3x3;A(*)
110   END