Program primer; Var sum,i,n,ch:integer; Begin sum:=0; write(' skolko budet chisel? '); readln(n); for i:=1 to n do begin write('Vvedite chislo ',i,' : '); readln(ch); if ch mod 8 = 0 then sum:=sum+ch; end; writeln('SUMA chisel kratnyh 8 = ', sum); End.