Ответ:
Arr = []
for n in reversed( range(1, 9) ):
Arr.append(n)
print(Arr) #Output: [8, 7, 6, 5, 4, 3, 2, 1]
const n=8;
var a:array [1..n] of integer;
i:integer;
begin
for i:= 1 to n do
a[i]:= 9-i;
writeln('a[',i,'] = ',a[i])
end
end.
Объяснение:
картинка
Copyright © 2024 SCHOLAR.TIPS - All rights reserved.
Answers & Comments
Ответ:
Arr = []
for n in reversed( range(1, 9) ):
Arr.append(n)
print(Arr) #Output: [8, 7, 6, 5, 4, 3, 2, 1]
Ответ:
const n=8;
var a:array [1..n] of integer;
i:integer;
begin
for i:= 1 to n do
begin
a[i]:= 9-i;
writeln('a[',i,'] = ',a[i])
end
end.
Объяснение:
картинка