program Project1;uses crt;vari, count: integer;begincount := 0;
for i := 501 to 1000 dobeginif (i mod 13 = 0) or (i mod 17 = 0) thenbegincount := count + 1;writeln(count, ' число: ', i);end;
end;
readkey;end.
program Project1;
uses crt;
var
i, count: integer;
begin
count := 0;
for i := 501 to 1000 do
if count = 20 thenbegin
if (i mod 13 = 0) or (i mod 17 = 0) then
begin
count := count + 1;
writeln(count, ' число: ', i);
end;
break;
end;
readkey;
end.