INPUT "vvedite kol-vo elementov ", n
DIM a(n)
RANDOMIZE TIMER
PRINT "ishodnyj massiv"
FOR i = 1 TO n
a(i) = INT(RND * 20) - 10
PRINT a(i);
NEXT
PRINT
max = a(1)
FOR i = 1 TO n
IF a(i) > max THEN max = a(i)
NEXT
PRINT "max="; max
FOR i = 1 TO n
IF ABS(a(i)) = max THEN k = k + 1
NEXT
PRINT "po modulyu>max ="; k
Тестирование выполнено в программе QB64 ( Скачать )