Ответ:
PascalABC.NET
#1
begin
Range(1, ReadInteger('n = ')).Aggregate(BigInteger.One, (x, y) -> x * y).Print;
end.
#5
var x := ReadInteger('x = ');
Range(1, ReadInteger('n = ')).Select(n-> n * cos(n*x)).Sum.Print;
Объяснение:
1.
var i,n,f:integer;
f:=1;
readln(n);
for i:=1 to n do
f:=f*i;
writeln(f);
5.
res,x:real;
res:=0;
readln(x);
res:=res+i*cos(i*x);
writeln(res);
Copyright © 2024 SCHOLAR.TIPS - All rights reserved.
Answers & Comments
Ответ:
PascalABC.NET
#1
begin
Range(1, ReadInteger('n = ')).Aggregate(BigInteger.One, (x, y) -> x * y).Print;
end.
#5
begin
var x := ReadInteger('x = ');
Range(1, ReadInteger('n = ')).Select(n-> n * cos(n*x)).Sum.Print;
end.
Объяснение:
Ответ:
1.
var i,n,f:integer;
begin
f:=1;
readln(n);
for i:=1 to n do
f:=f*i;
writeln(f);
end.
5.
var i,n,f:integer;
res,x:real;
begin
res:=0;
readln(n);
readln(x);
for i:=1 to n do
res:=res+i*cos(i*x);
writeln(res);
end.
Объяснение: