Ответ:
const n=20;
var s,k:real;
m:array[1..n] of real;
i:integer;
begin
s:=0;
for i:=1 to n do
m[i]:=i*i;
write(m[i],' ')
end;
writeln;
readln(k);
if m[i]>k then s:=s+m[i];
write(s)
end.
Copyright © 2024 SCHOLAR.TIPS - All rights reserved.
Answers & Comments
Ответ:
const n=20;
var s,k:real;
m:array[1..n] of real;
i:integer;
begin
s:=0;
for i:=1 to n do
begin
m[i]:=i*i;
write(m[i],' ')
end;
writeln;
readln(k);
for i:=1 to n do
if m[i]>k then s:=s+m[i];
write(s)
end.