var
i, sum: integer;
mas: array[1..40] of integer;
begin
randomize;
for i:=1 to 40 do
mas[i]:= random(0,99);
if ((i mod 2 = 1) and (mas[i] mod 10 = 7)) then
inc(sum, mas[i]);
end;
write(sum);
end.
var
i, sum: integer;
mas: array[1..40] of integer;
begin
randomize;
for i:=1 to 40 do
begin
mas[i]:= random(0,99);
if ((i mod 2 = 1) and (mas[i] mod 10 = 7)) then
inc(sum, mas[i]);
end;
write(sum);
end.