area of triangle by 51b

-module(t).
-export([m/0]).
m()->case io:fread('',"~d~d~d")of{_,[A,B,C]}->D=A*A+B*B-C*C,io:write(round(math:sqrt(4*A*A*B*B-D*D)/4)),io:nl(),m();_->0end.

Note that non-ascii characters in the above source code will be escaped (such as \x9f).

download

return to the top page