INPUT "vvedite kolichestvo chisel ", n
DIM x(n)
FOR i = 1 TO n
INPUT x(i)
NEXT
PRINT "sosednie odinakovye nomera"
FOR i = 2 TO n
IF x(i) = x(i - 1) THEN PRINT i; i - 1: f = 1
NEXT
IF f = 0 THEN PRINT "sosednih odinakovyh net"
INPUT "vvedite kolichestvo chisel ", n
DIM x(n)
FOR i = 1 TO n
INPUT x(i)
NEXT
PRINT "sosednie odinakovye nomera"
FOR i = 2 TO n
IF x(i) = x(i - 1) THEN PRINT i; i - 1: f = 1
NEXT
IF f = 0 THEN PRINT "sosednih odinakovyh net"