var a:array[1..7] of integer; i:integer; n1:real;beginwriteln('Введите 7 целых чисел');for i:=1 to 7 dobeginrepeatread(n1);if (n1<>round(n1)) then writeln('Необходимо целое число');until (n1=round(n1));a[i]:=round(n1);end;for i:=1 to 7 dobeginif a[i]<0 then a[i]:=-1;end;writeln('Полученный массив:');for i:=1 to 7 dowrite(a[i]:5);writeln('');end.