дано натуральное число n. вычислить 1*2+2*3*4+..+2*3*4+..+n.
ПОМОГИТЕ ПОЖАЛУЙСТА!!!!
Предмет:
ИнформатикаАвтор:
vordik771var i,j,n:integer;
s,p:real;
begin
readln(n);
s:=0;
for i:=1 to n do begin
p:=1;
for j:=i to 2*i do
p:=p*j;
s:=s+p;
end;
writeln(s);
readln;
end.
Автор:
Fedoseewa27Добавить свой ответ
Предмет:
АлгебраАвтор:
bernardolongОтветов:
Смотреть
Предмет:
Другие предметыАвтор:
fernm8ojОтветов:
Смотреть
НАДО ПЕРЕВЕСТИ В КОСВЕННУЮ РЕЧЬ,ПОЖАЛУЙСТА
1. I said to Nick : " Where are you going ? "
2. " Go home , " said teacher to us .
3. " Don't be late for dinner , " said mother to Nick .
4. The teacher said to me : " Hand this note to your parents , please . "
5. Masha said : " I usually spend my holidays in the south . "
6. He said : " I am going to a rest - home tomorrow . "
7. She said to us : " They arrived in Moscow yesterday . "
8. " When I get a job , I'll buy a warm coat , " said the boy's father .
9. They said to him : " What time does the train start ? "
10. She asked me : " Why didn't you come here yesterday ? "
11. Boris said to them : " How can I get to the railway station ? "
12. " I shall buy some new stamps for you if you give me this one , " said Mike to Kate
13. He said : " I am sure she will come in time . "
14. She said to Tom : " You may come tomorrow a little later . "
Предмет:
Английский языкАвтор:
toper123111Ответов:
Смотреть