- 3


, ­ . .

( ­) . : , , ­ , . .

 

'

cls

( ) ?

( :) ? :

(=, a) input a=, a

(b=, b) inpnt b=, b

(=, ) input c=, c

( > 0 b > 0 > 0) if a<=0 or b<=0 or c<=0 then

( ) ?

c ( < b

+ b < + elseif not (a < b+ and b < +

+ <+b) and < + b) then

( ) ?

else

:= ( + b + )/2 = (+ b +)/2

S :=

S = sqr (p*(p-a)*(p-b)*(p-c))

(=, S) ? =, S