INPUT "vvedite kolichestvo elementov ", n
DIM a(n + 2)
FOR i = 1 TO n
INPUT "vvedite element ", a(i)
NEXT
PRINT "ishodnyj massiv"
FOR i = 1 TO n
PRINT a(i);
NEXT
PRINT
FOR i = 1 TO n
IF a(i) MOD 3 = 0 THEN kol1 = kol1 + 1
IF a(i) MOD 2 = 0 THEN s = s + a(i): kol2 = kol2 + 1
NEXT
PRINT "na 3 delitsya "; kol1; "chisel"
PRINT " srednee arifmeticheskoe chetnyh chisel="; s / kol2
FOR i = n + 1 TO 2 STEP -1
a(i) = a(i - 1)
NEXT
a(1) = kol1
a(n + 2) = s / kol2
PRINT "novyj massiv"
FOR i = 1 TO n + 2
PRINT a(i);
NEXT