var
a: array[1..40] of integer;
i, sum: integer;
begin
sum := 0;
for i:=1 to 40 do
a[i]:= random(21);
if a[i] <= 10
sum:= sum + a[i]
end;
writeln (sum);
end.
var
a: array[1..40] of integer;
i, sum: integer;
begin
sum := 0;
for i:=1 to 40 do
begin
a[i]:= random(21);
if a[i] <= 10
sum:= sum + a[i]
end;
writeln (sum);
end.