INPUT"vvedite kol-vo chisel ",n
RANDOMIZE TIMER
DIM a(n)
FOR i=1 TO n
a(i)=INT(RND*20)-10
NEXT
PRINT"massiv"
FOR i=1 TO n
PRINT a(i);
NEXT
PRINT
FOR i=1 TO n
IF a(i)<0 THEN nomer=i
NEXT
PRINT"nomer poslednego otricatelnogo chisla=";nomer
INPUT"vvedite kol-vo chisel ",n
RANDOMIZE TIMER
DIM a(n)
FOR i=1 TO n
a(i)=INT(RND*20)-10
NEXT
PRINT"massiv"
FOR i=1 TO n
PRINT a(i);
NEXT
PRINT
FOR i=1 TO n
IF a(i)<0 THEN nomer=i
NEXT
PRINT"nomer poslednego otricatelnogo chisla=";nomer