CLS
DIM a(10)
FOR i = 1 TO 10
RANDOMIZE TIMER
a(i) = INT(RND * 10 + 1) * 10
NEXT
PRINT "ishod massiv"
FOR i = 1 TO 10
PRINT a(i);
NEXT
PRINT
FOR i = 1 TO 10
IF a(i) MOD 5 = 0 AND a(i) MOD 8 = 0 THEN t = i: f = 1
NEXT
IF f = 1 THEN
FOR i = t TO 9
a(i) = a(i + 1)
NEXT
PRINT "novyj massiv"
FOR i = 1 TO 9
PRINT a(i);
NEXT
ELSE PRINT "takih elementov net"
END IF
Тестирование выполнено в программе QB64 ( Скачать )