Array in Pascal?

Good day!
Could not help to solve the issue (preferably in Pascal).
Thanks in advance!
5e4907102241b127890361.jpeg
April 7th 20 at 15:16
2 answers
April 7th 20 at 15:18
Solution
The answer is 4

P. S. do not ask such "questions" here. This is a task, not a question.
Well, thank you. How did you decide? - Makayla.Bradtke commented on April 7th 20 at 15:21
@tanya, looked at the code - etha_Crist commented on April 7th 20 at 15:24
@tanya, And - judging by the fact that he is addressed with the index array. The condition says that if an array element is less than 0, then increase j by 1. What's the problem? - etha_Crist commented on April 7th 20 at 15:27
April 7th 20 at 15:20
On freelancin will help.

Find more questions by tags ArraysPascal