CLS
RANDOMIZE TIMER
INPUT "vvedite n"; n
DIM a(n)
FOR i = 1 TO n
a(i) = FIX(RND * 16 + 10)
NEXT
PRINT "massiv"
FOR i = 1 TO n
PRINT a(i);
NEXT
FOR i = 1 TO n
FOR j = 2 TO n
IF a(j) > a(j - 1) THEN SWAP a(j), a(j - 1)
NEXT
NEXT
PRINT
PRINT "new massiv 1"
FOR i = 1 TO n
PRINT a(i);
NEXT
FOR i = 1 TO n
IF a(i) MOD 3 = 0 THEN a(i) = 0
NEXT
PRINT
PRINT "new massiv 2"
FOR i = 1 TO n
PRINT a(i);
NEXT
Тестирование выполнено в программе QB64 ( Скачать )