1) Program z1; var a: array [1..1000] of integer; n, c, i: integer; begin readln(n); c := 0; for i := 1 to n do readln(a[i]); for i := 1 to n do if (a[i] mod 5 = 0) then inc(c); writeln(c); readln; end.
3) var a: array [1..10] of integer; i: byte; begin for i:=1 to 10 do a [ i ] :=2*i; begin for i:=1 to 10 do write(a[i]:4); end; end.
var a: array [1..1000] of integer;
n, c, i: integer;
begin
readln(n);
c := 0;
for i := 1 to n do readln(a[i]);
for i := 1 to n do if (a[i] mod 5 = 0) then inc(c);
writeln(c);
readln;
end.
3) var a: array [1..10] of integer;
i: byte;
begin
for i:=1 to 10 do
a [ i ] :=2*i;
begin
for i:=1 to 10 do
write(a[i]:4);
end;
end.