Program p_1;
uses crt;
var
a,b,c,P,S: real;
begin
clrscr;
write ('a=');
readln (a);
write ('b=');
readln (b);
c:=sqrt(sqr(a)+sqr(b));
P:=a+b+c;
S:=a*b/2;
writeln ('P=',P:5:2);
writeln ('S=',S:5:2);
readln ();
end.
program p_2;
uses crt;
var
x,s,N: integer;
begin
clrscr;
read (x,N);
s:=0;
while (x<>0) do
begin
s:=s+x mod 10;
x:=x div 10;
end;
if (swriteln ('selse
writeln (s,' do not <',N);<br>readln ();
end.