area of triangle by Jonathan Hogg

import math as m\x0d
while 1:a,b,c=[float(a) for a in raw_input().split()];s=(a+b+c)/2;print int(round(m.sqrt(s*(s-a)*(s-b)*(s-c))))

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

download

return to the top page