array_dim2 268 B

123456789101112131415
  1. a = array.new(3, 2);
  2. for(x = 0; x < array.length(a); x++)
  3. {
  4. for(y = 0; y < array.length(a[x]); y++)
  5. {
  6. a[x, y] = x * 2 + y;
  7. }
  8. }
  9. for(x = 0; x < array.length(a); x++)
  10. {
  11. for(y = 0; y < array.length(a[x]); y++)
  12. {
  13. print(a[x, y]);
  14. }
  15. }