Const N = 15;
Var
A:array[1..N] of integer;
i:integer;
S:real;
Begin
S:=0;
Write('Исходный массив: ');
For i:= 1 to N do
Begin
A[i]:=random(100);
Write(A[i],' ');
if (A[i]<50)and(A[i] mod 5 = 0) then S:=S+A[i];<br> End;
WriteLn;
WriteLn('S = ',S);
End.