Array.basic 426 B

123456789101112131415161718192021222324252627282930313233
  1. print(getAllocations())
  2. a = array(5)
  3. print(getAllocations())
  4. a[0] = 5
  5. a[1] = 20
  6. a[2] = 40
  7. a[3] = 60
  8. a[4] = 80
  9. for i = 0 to 4
  10. print(a[i])
  11. end
  12. b = array(7)
  13. print(getAllocations())
  14. c = array(7)
  15. print(getAllocations())
  16. for i = 0 to 40
  17. a = array(5)
  18. end
  19. print(getAllocations())
  20. d = array(5)
  21. print(getAllocations())
  22. d[0] = array(3)
  23. d[1] = array(4)
  24. d[2] = d
  25. print(d)
  26. print(getAllocations())
  27. d = 5
  28. print(getAllocations())