Program to find the Area and Volume of Icosahedron | C # program to find the Area and volume of Icosahedron ; Function to find area of Icosahedron ; Formula to calculating area ; Function to find volume of Icosahedron ; Formula to calculating volume ; Driver code ; Function call to find area of Icosahedron . ; Function call to find volume of Icosahedron .
using System ; public class GFG { static float findArea ( float a ) { float area ; area = ( float ) ( 5 * Math . Sqrt ( 3 ) * a * a ) ; return area ; } static float findVolume ( float a ) { float volume ; volume = ( float ) ( ( ( float ) 5 / 12 ) * ( 3 + Math . Sqrt ( 5 ) ) * a * a * a ) ; return volume ; } static public void Main ( ) { float a = 5 ; Console . WriteLine ( " Area : ▁ " + findArea ( a ) ) ; Console . WriteLine ( " Volume : ▁ " + findVolume ( a ) ) ; } }