Skip to content

Instantly share code, notes, and snippets.

@4lex1v
Created September 22, 2012 00:25
Show Gist options
  • Save 4lex1v/3764653 to your computer and use it in GitHub Desktop.
Save 4lex1v/3764653 to your computer and use it in GitHub Desktop.
Pascal assignment_1
for i:=1 to 15 do
begin
if data[i, 7] <> '*' then
begin
count:= 1;
for j:=i+1 to 15 do
begin
equals:= true;
for h:=8 to 20 do
if data[i,h] <> data[j,h] then
equals:=false;
if equals then
begin
count:= count + 1;
data[j, 7]:= '*';
end;
end;
write(count, ' - ');
for h:=8 to 20 do
write(data[i,h]);
end;
end;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment