Calculate Volume of Dodecahedron | CPP program to calculate Volume of dodecahedron ; utility Function ; Driver Function
#include <bits/stdc++.h> NEW_LINE using namespace std ; double vol_of_dodecahedron ( int side ) { return ( ( ( 15 + ( 7 * ( sqrt ( 5 ) ) ) ) / 4 ) * ( pow ( side , 3 ) ) ) ; } int main ( ) { int side = 4 ; cout << " Volume ▁ of ▁ dodecahedron ▁ = ▁ " << vol_of_dodecahedron ( side ) ; }