Пример: 255844
Результат: 2,3, 5,6
INPUT "vvedite kol-vo elementov ",n
DIM a(n+1)
RANDOMIZE TIMER
FOR i=1 TO n
a(i)=INT(RND*10)
NEXT
PRINT"massiv"
FOR i=1 TO n
PRINT a(i);
NEXT
PRINT
FOR i=1 TO n
IF a(i)=a(i-1)OR a(i)=a(i+1) THEN PRINT i;:f=1
NEXT
IF f=0 THEN PRINT"ryadom net odinakovyh elementov"