area of triangle by 51b

main(a,b,c){for(;~scanf("%d%d%d",&a,&b,&c);)printf("%.f\n",sin(acos((a*a+b*b-c*c)*.5/a/b))*a*b/2);}

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

download

return to the top page