INPUT "vvedite kolichestvo chisel ", n
DIM a(n)
FOR i = 1 TO n
DO
f = 0
INPUT "vvedite chislo", a(i)
IF a(i) <> INT(a(i)) THEN PRINT "chislo ne celoe, vvedite drugoe": f = 1
LOOP UNTIL f = 0
NEXT
PRINT "massiv"
FOR i = 1 TO n
PRINT a(i);
NEXT
Тестирование выполнено в программе QB64 ( Скачать )