Program to calculate area and volume of a Tetrahedron | C ++ Program to Calculate area of tetrahedron ; Utility Function ; Driver Code
#include <iostream> NEW_LINE #include <math.h> NEW_LINE using namespace std ; double area_of_tetrahedron ( int side ) { return ( sqrt ( 3 ) * ( side * side ) ) ; } int main ( ) { int side = 3 ; cout << " Area ▁ of ▁ Tetrahedron ▁ = " << area_of_tetrahedron ( side ) ; }