I'm a student and I'm starting to learn about programming, I have an exercise that I could not solve myself and I would like to know if anyone here could help me with the solution and / or an explanation so I can understand this and try to solve others similar to this by myself.
I need an algorithm in Portuguese , which has a 5x5 matrix, where each position represents a city: A, B, C, D, E each with a predefined distance I must put through which cities I passed (go through the matrix) then say the distance traveled, and / or the distance from one city to the other.
Reference: