# I need help with arrays

**URL:** <https://discourse.processing.org/t/i-need-help-with-arrays/37381>\
**Category:** Coding Questions\
**Tags:** homework\
**Created:** [June 7, 2022, 11:47am UTC](https://discourse.processing.org/t/i-need-help-with-arrays/37381 "2022-06-07T11:47:51Z")\
**Posts on this page:** 1\
**Showing post:** 14

<div class="post-metadata">

**Author:** ![Chigoz](https://avatars.discourse-cdn.com/v4/letter/c/46a35a/32.png) [@Chigoz](https://discourse.processing.org/u/Chigoz)\
**Post date:** [June 8, 2022, 11:21am UTC](https://discourse.processing.org/t/i-need-help-with-arrays/37381/14 "2022-06-08T11:21:17Z")

</div>

Check out this correction;

distancesSG = calc\_Distance(Pos\_XS,Pos\_YS ,Pos\_GX,Pos\_GY);

distances = (cities[i][j],cities[i][j+1], distancesSG);

---

_[View the full topic](https://discourse.processing.org/t/i-need-help-with-arrays/37381)._
