program VLALR13;
{$APPTYPE CONSOLE}
uses
SysUtils;
var
vArr: array of Integer;
i, sum, n: Integer;
begin
Randomize;
Write('Vvedite razmer massiva: ');
ReadLn(n);
SetLength(vArr, n);
sum := 0;
Write('Massiv: ');
for i := 0 to High(vArr) do
begin
vArr[i] := Random(100);
Write(vArr[i], ' ');
sum := sum + vArr[i];
end;
WriteLn;
WriteLn('Summa elementov massiva: ', sum);
ReadLn;
end.
cHJvZ3JhbSBWTEFMUjEzOwoKeyRBUFBUWVBFIENPTlNPTEV9Cgp1c2VzCiAgU3lzVXRpbHM7Cgp2YXIKICB2QXJyOiBhcnJheSBvZiBJbnRlZ2VyOwogIGksIHN1bSwgbjogSW50ZWdlcjsKYmVnaW4KICBSYW5kb21pemU7CgogIFdyaXRlKCdWdmVkaXRlIHJhem1lciBtYXNzaXZhOiAnKTsKICBSZWFkTG4obik7CiAgU2V0TGVuZ3RoKHZBcnIsIG4pOwoKICBzdW0gOj0gMDsKICBXcml0ZSgnTWFzc2l2OiAnKTsKICBmb3IgaSA6PSAwIHRvIEhpZ2godkFycikgZG8KICBiZWdpbgogICAgdkFycltpXSA6PSBSYW5kb20oMTAwKTsKICAgIFdyaXRlKHZBcnJbaV0sICcgJyk7CiAgICBzdW0gOj0gc3VtICsgdkFycltpXTsKICBlbmQ7CgogIFdyaXRlTG47CiAgV3JpdGVMbignU3VtbWEgZWxlbWVudG92IG1hc3NpdmE6ICcsIHN1bSk7CiAgUmVhZExuOwplbmQuCg==