I have a task to display the distances between towns using 2D arrays. With the table I have already got with my code what would I add to make it look like the desired output shown below. The distances between towns need to be a 2D array. Any help is appreciated.
Naming could be better and you might need to tweek the spacing but it does what you wanted.