A)
_________________________________
Var s,p,a,b: integer;
begin
readln(s,p);
a:=round((s+sqrt(s*s-4*p))/2);
b:=s-a;
writeln(a,' ',b);
end.
Пример:
73 1200
<span>48 25</span>
Program n1;
var k,n,i: integer;
begin
readln(k);
n:=k+5;
i:=0;
while i<>n do
begin
i:=i+1;
write(k,' ');
end;
end.
Using System;
public class Test
{
public static int Main()
{
double a=Convert.ToDouble(Console.ReadLine());
double c=Convert.ToDouble(Console.ReadLine());
double b=Math.Sqrt(c*c-a*a);
double r=(a+b-c)/2;
Console.WriteLine("Катет = "+Math.Round(b,2));
Console.WriteLine("r вписанной окр. = "+Math.Round(r,2));
return 0;
}
}