Ответы
Ответ дал:
0
Var i,s : Integer;
Begin
s:=0;
For i:=50 to 80 do If Odd(i) then s:=s+i;
Writeln(s);
s:=0;
i:=50;
While i<=80 do
Begin
If Odd(i) then s:=s+i;
Inc(i);
end;
Writeln(s);
s:=0;
i:=50;
Repeat
If Odd(i) then s:=s+i;
Inc(i);
Until i>80;
Writeln(s);
end.
Begin
s:=0;
For i:=50 to 80 do If Odd(i) then s:=s+i;
Writeln(s);
s:=0;
i:=50;
While i<=80 do
Begin
If Odd(i) then s:=s+i;
Inc(i);
end;
Writeln(s);
s:=0;
i:=50;
Repeat
If Odd(i) then s:=s+i;
Inc(i);
Until i>80;
Writeln(s);
end.
Ответ дал:
0
Writeln((79+51)*((79-51) div 2+1)/2);
Вас заинтересует
2 года назад
2 года назад
7 лет назад
7 лет назад
10 лет назад