var a:array[1..10] of integer;
i,s:integer;
begin
for i:=1 to 10 do begin
a[i]:=random (49)+1;
write (a[i]:3);
s:=s+a[i];
end;
writeln;
write(s);
end.
var a:array[1..10] of integer;
i,s:integer;
begin
for i:=1 to 10 do begin
a[i]:=random (49)+1;
write (a[i]:3);
s:=s+a[i];
end;
writeln;
write(s);
end.