CLS
DIM a(12)
FOR i = 1 TO 12
PRINT "vvedite element"; i
INPUT a(i)
NEXT
PRINT "massiv"
FOR i = 1 TO n
PRINT a(i);
NEXT
FOR i = 1 TO n
IF a(i) = 17 THEN k = 0 else k=k+1
NEXT
if k<12 then PRINT "k ="; k else print "elementa=17 net"CLS
DIM a(12)
FOR i = 1 TO 12
PRINT "vvedite element"; i
INPUT a(i)
NEXT
PRINT "massiv"
FOR i = 1 TO n
PRINT a(i);
NEXT
FOR i = 1 TO n
IF a(i) = 17 THEN k = 0 else k=k+1
NEXT
if k<12 then PRINT "k ="; k else print "elementa=17 net"
Тестирование выполнено в программе QB64 ( Скачать )