const n=25;
var
a: array[1..n] of integer;
i: integer;
begin
randomize;
for i:= 1 to n do
a[i]:=random(41)-16;
Writeln('Source array:');
write(a[i]:5);
Writeln;
Writeln('Array elements are multiples of 3:');
if a[i] mod 3 = 0 then
readln;
end.
const n=25;
var
a: array[1..n] of integer;
i: integer;
begin
randomize;
for i:= 1 to n do
a[i]:=random(41)-16;
Writeln('Source array:');
for i:= 1 to n do
write(a[i]:5);
Writeln;
Writeln('Array elements are multiples of 3:');
for i:= 1 to n do
if a[i] mod 3 = 0 then
write(a[i]:5);
readln;
end.