Нужно посчитать кол-во двоек, троек, четвёрок, пятёрок за диктант и вывести средний был всей работы. program p1; const n=20; var i,a1,two,theere,fore,five,sum: integer; sr: double; a: array[1..20] of integer; begin two: =0; theere: =0; fore: =0; five: =0; sr: =0; sum: +0; for i: =1 to n do begin read(a1); a[i]: =a1; if a[i]=2 then two: =two+1; if a[i]=3 then theere: =theere+1; if a[i]=4 then fore: =fore+1; if a[i]= 5 then five: =five+1; end; writeln('количество двоек: ',two); writeln('количество троек: ',theere); writeln('количество четвёрок: ',fore); writeln('количество пятёрок: ',five); //sr: =(two+theere+fore+five)/n; writeln(sr); end.