Python:
q = [0]+[1]*98+[0]
const
n=100;
var
a: array [1..n] of integer;
i:integer;
begin
for i:=1 to n do
a[i]:=1;
a[1]:=0;
a[n]:=0;
write(a[i]:4);
end;
end.
Copyright © 2025 SCHOLAR.TIPS - All rights reserved.
Answers & Comments
Verified answer
Python:
q = [0]+[1]*98+[0]
Verified answer
const
n=100;
var
a: array [1..n] of integer;
i:integer;
begin
for i:=1 to n do
begin
a[i]:=1;
a[1]:=0;
a[n]:=0;
write(a[i]:4);
end;
end.
-- Справедливое замечание.