1) uses crt;
const n=10;
var a:array[1..n] of integer;
i,k:integer;
begin
for i:=1 to n do
a[i]:=i*2+1
end;
write(a[i]:3);
end.
2) uses crt;
a[i]:=i*3
Copyright © 2024 SCHOLAR.TIPS - All rights reserved.
Answers & Comments
1) uses crt;
const n=10;
var a:array[1..n] of integer;
i,k:integer;
begin
for i:=1 to n do
begin
a[i]:=i*2+1
end;
for i:=1 to n do
write(a[i]:3);
end.
2) uses crt;
const n=10;
var a:array[1..n] of integer;
i,k:integer;
begin
for i:=1 to n do
begin
a[i]:=i*3
end;
for i:=1 to n do
write(a[i]:3);
end.