Ответы и объяснения

2014-04-10T08:53:56+00:00
Var a,b,i:integer;
begin
a:=0;
b:=1;
for i = 1 to 10
if (i mod 2) = 0 then
a:=a+i
else
b:=b*i;
end;
writeln (a);
wrireln (b);
end.



var a,i:integer;
begin
a:=0;
for i = 1 to 10
a:=a+i*i;
end;
writeln (a);
end.
 
2014-04-10T08:58:31+00:00
procedure Second();
var
  a: byte;
  b, c: single;
begin
  c := 1;
  for a := 1 to 10 do
    if (a mod 2 = 0) then b += a
      else c *= a;
  writeln(b, System.Environment.NewLine, c);
end;

procedure Third();
var
  a: byte;
  b: longInt;
begin
  for a := 1 to 10 do
    b += sqr(a);
  writeln(b);
end;

begin
  Second;
  Writeln();
  Third;
end.