The task is to find duplicate words in the array and display them. I decided to implement it like this:
for i:=1 to 30 do for i1:=1 to 30 do if w[i1]=w[i] then begin write(w[i],' '); break; end; But the original array is displayed completely, without any changes. What is the problem?