CLS
INPUT "Razmernost massiva="; n
DIM a(n)
FOR i = 1 TO n
INPUT "Vedite element massiva"; a(i)
NEXT i
FOR i = 1 TO n
PRINT a(i);
NEXT i
PRINT
m = 0
FOR i = 1 TO n
IF a(i) = 0 THEN m = m + 1
NEXT i
DIM b(m)
k = 0
FOR i = 1 TO n
IF a(i) = 0 THEN k = k + 1: b(k) = i
NEXT i
FOR i = 1 TO m
PRINT b(i);
NEXT i
Тестирование выполнено в программе QB64 ( Скачать )