Wednesday, August 20, 2014

COJ 1493. Geometrical Task II

Here are formulas for the necessary areas
Triangle (a*h)/2  a is the side and h is the height taken to that side
Rhombus (d1*d2)/2  d1 and d2 are diagonals of rhombus
circle pi*r*r   where pi is 3.14 and r is the radius.

 If you are having trouble outputing with correct precision have a look at this.


       FULL SOURCE CODE

No comments:

Post a Comment