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 .
#include <bits/stdc++.h> NEW_LINE using namespace std ; float findArea ( float a ) { float area ; area = 5 * sqrt ( 3 ) * a * a ; return area ; } float findVolume ( float a ) { float volume ; volume = ( ( float ) 5 / 12 ) * ( 3 + sqrt ( 5 ) ) * a * a * a ; return volume ; } int main ( ) { float a = 5 ; cout << " Area : ▁ " << findArea ( a ) << endl ; cout << " Volume : ▁ " << findVolume ( a ) ; return 0 ; }