INPUT "vvedite kol-vo elementov ",n
DIM a(n)
RANDOMIZE TIMER
PRINT"massiv"
FOR i=1 TO n
a(i)=INT(RND*20)+1
PRINT a(i);" ";
NEXT
p=1
FOR i=1 TO n
IF a(i) MOD 3=0 THEN p=p*a(i)
NEXT
PRINT
PRINT"proizvedenie=";p
INPUT "vvedite kol-vo elementov ",n
DIM a(n)
RANDOMIZE TIMER
PRINT"massiv"
FOR i=1 TO n
a(i)=INT(RND*20)+1
PRINT a(i);" ";
NEXT
p=1
FOR i=1 TO n
IF a(i) MOD 3=0 THEN p=p*a(i)
NEXT
PRINT
PRINT"proizvedenie=";p