Ответ:
const n=31;
var a:array[1..n] of integer;
i,k,sum:integer;
BEGIN
for i:=1 to n do
a[i]:=random(10);
sum:=0; k:=0;
if a[i]=0 then
begin
write(i,' ');
sum:=sum+1;
end;
writeln;
writeln(sum);
END.
Copyright © 2024 SCHOLAR.TIPS - All rights reserved.
Answers & Comments
Ответ:
const n=31;
var a:array[1..n] of integer;
i,k,sum:integer;
BEGIN
for i:=1 to n do
a[i]:=random(10);
sum:=0; k:=0;
for i:=1 to n do
if a[i]=0 then
begin
write(i,' ');
sum:=sum+1;
end;
writeln;
writeln(sum);
END.