INPUT "vvedite razmer massivov N ", n
DIM a(n), b(n), c(n)
PRINT "vvedite elementy massiva A"
FOR i = 1 TO n
PRINT "a("; i; ")=";
INPUT a(i)
NEXT
PRINT "vvedite elementy massiva B"
FOR i = 1 TO n
PRINT "b("; i; ")=";
INPUT b(i)
NEXT
PRINT "massiv a"
FOR i = 1 TO n
PRINT a(i);
NEXT
PRINT
PRINT "massiv b"
FOR i = 1 TO n
PRINT b(i);
NEXT
PRINT
FOR i = 1 TO n
IF a(i) * b(i) >= 0 THEN c(i) = 1 ELSE c(i) = 0
NEXT
PRINT "massiv c"
FOR i = 1 TO n
PRINT c(i);
NEXT
Тестирование выполнено в программе QB64 ( Скачать )