program ideone;
{i - СЧИТАЕТ СТОБЦЫ}
uses crt;
var
q,n,x,i,j:integer;
massiv:array[1..10,1..10] of integer;
begin
{Заполнение Массива} for j:=1 to 10 do begin {цикл для перебора всех строк}
for i:=1 to 10 do begin {перебор всех элементов строки по столбцам}
{ЯДРО}
massiv[i,j]:=0;
if i=j then
massiv[i,j]:=1;
if (i=1) or (i=10) then begin
massiv[i,j]:=1;
end;
end;
end;
writeln;
{Вывод Массива} for j:=1 to 10 do begin {цикл для перебора всех строк}
writeln;
for i:=1 to 10 do begin {перебор всех элементов строки по столбцам}
write(massiv[i,j]:5);
end;
end;
end.
if i=j then
massiv[i,j]:=1;
if (i=1) or (i=10) then begin
massiv[i,j]:=1;
end;
end;
end;
writeln;
{Вывод Массива} for j:=1 to 10 do begin {цикл для перебора всех строк}
writeln;
for i:=1 to 10 do begin {перебор всех элементов строки по столбцам}
write(massiv[i,j]:5);
end;
end;
end.
cHJvZ3JhbSBpZGVvbmU7CgkJCQkJCQkJCQkJCQkJCXtpIC0g0KHQp9CY0KLQkNCV0KIg0KHQotCe0JHQptCrfQoJdXNlcyBjcnQ7Cgp2YXIKCglxLG4seCxpLGo6aW50ZWdlcjsKCW1hc3NpdjphcnJheVsxLi4xMCwxLi4xMF0gb2YgaW50ZWdlcjsKCmJlZ2luCgoJIAoJCgkKCnvQl9Cw0L/QvtC70L3QtdC90LjQtSDQnNCw0YHRgdC40LLQsH0gIGZvciBqOj0xIHRvIDEwIGRvIGJlZ2luIAkJe9GG0LjQutC7INC00LvRjyDQv9C10YDQtdCx0L7RgNCwINCy0YHQtdGFINGB0YLRgNC+0Lp9CQkKCQkJCQkJCgkJCQkJCQlmb3IgaTo9MSB0byAxMCBkbyBiZWdpbiB70L/QtdGA0LXQsdC+0YAg0LLRgdC10YUg0Y3Qu9C10LzQtdC90YLQvtCyINGB0YLRgNC+0LrQuCDQv9C+INGB0YLQvtC70LHRhtCw0Lx9CQoJCQkJCXvQr9CU0KDQnn0KCQkJCQkJCQ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