Hello. In college, the whole course was pascal and it was time to practice. They gave individual assignments and deadlines. Not to say that I know Pascal perfectly, rather at the level of an experienced user. In the task there were only 5 tasks, 4 of which were successfully completed and recorded in the report, but from the fifth there were difficulties.
Task text:
Given a two-dimensional array of positive integers. It is known that there are matching elements (identical numbers). Display their indices.
Everything seems to sound simple and should not take a lot of time, but I can’t think of an algorithm. Thank you in advance.