Uses crt; var a:array[1..30] of integer; r, i:integer;
begin randomize; ClrScr; r:=0; i:=1; while i<31 do if (r>100) and (r<1000) and ((r mod 4=0) or (r mod 5=0)) then begin a[i]:=r; r:=random(1000); inc(i); end else r:=random(1000); for i:=1 to 30 do write(a[i]:4); end.
var a:array[1..30] of integer;
r, i:integer;
begin
randomize;
ClrScr;
r:=0;
i:=1;
while i<31 do
if (r>100) and (r<1000) and ((r mod 4=0) or (r mod 5=0)) then
begin
a[i]:=r;
r:=random(1000);
inc(i);
end else r:=random(1000);
for i:=1 to 30 do
write(a[i]:4);
end.